Merge pull request #3051 from Mjoycarry/bugfix/notify_cron1

Bugfix: notify cron
This commit is contained in:
Zexi Li
2019-09-25 18:01:02 +08:00
committed by GitHub
+1 -1
View File
@@ -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)