🐛 修改计划任务并未取消旧任务

This commit is contained in:
naiba
2021-09-30 11:59:57 +08:00
parent 092f40b47f
commit a25a1b128d
5 changed files with 9 additions and 10 deletions

View File

@@ -165,7 +165,7 @@ func loadCrons() {
crIgnoreMap[cr.Servers[j]] = true
}
cr.CronID, err = dao.Cron.AddFunc(cr.Scheduler, dao.CronTrigger(cr))
cr.CronJobID, err = dao.Cron.AddFunc(cr.Scheduler, dao.CronTrigger(cr))
if err == nil {
dao.Crons[cr.ID] = &cr
} else {