From 24235f287273a75686f0aca02584720d20833082 Mon Sep 17 00:00:00 2001 From: zizi Date: Wed, 20 May 2026 15:40:34 +0800 Subject: [PATCH] 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. --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index 016a3fe4..91a6f45c 100644 --- a/main.go +++ b/main.go @@ -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 {