fix: start channel monitor background tasks

Start the channel monitor runner and maintenance loop during service boot so scheduled checks, rollups, and cleanup run automatically.
This commit is contained in:
zizi 2026-05-20 15:40:34 +08:00
parent df5114cc4a
commit 24235f2872

View File

@ -120,6 +120,9 @@ func main() {
service.StartSubscriptionQuotaResetTask()
// Channel quota reset task (daily/weekly/monthly/custom)
service.StartChannelQuotaResetTask()
// Channel monitor runner and maintenance tasks
service.StartChannelMonitorRunner()
service.StartChannelMonitorMaintenanceTask()
// Wire task polling adaptor factory (breaks service -> relay import cycle)
service.GetTaskAdaptorFunc = func(platform constant.TaskPlatform) service.TaskPollingAdaptor {