From 5f170e6bd032d109a9896a30c6b3a6af5bde978d Mon Sep 17 00:00:00 2001 From: Rain Date: Wed, 25 Sep 2019 17:54:54 +0800 Subject: [PATCH] fix cron --- pkg/notify/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/notify/service.go b/pkg/notify/service.go index 43537916ac..f63f17da3f 100644 --- a/pkg/notify/service.go +++ b/pkg/notify/service.go @@ -63,7 +63,7 @@ func StartService() { models.NotifyService.InitAll() defer models.NotifyService.StopAll() - cron := cronman.GetCronJobManager(true) + cron := cronman.GetCronJobManager() // update service cron.AddJobAtIntervals("UpdateServices", time.Duration(opts.UpdateInterval)*time.Second, models.NotifyService.UpdateServices)