浏览代码

调整定时任务执行时间

boweniac 1 天之前
父节点
当前提交
e4e556af1b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      crontask/init.go

+ 1 - 1
crontask/init.go

@@ -45,7 +45,7 @@ func ScheduleRun(c *cron.Cron, serverCtx *svc.ServiceContext) {
 	})
 	})
 
 
 	contactForm := NewCronTask(context.Background(), serverCtx)
 	contactForm := NewCronTask(context.Background(), serverCtx)
-	c.AddFunc("0 0 * * *", func() {
+	c.AddFunc("10 0 * * *", func() {
 		contactForm.analyze()
 		contactForm.analyze()
 	})
 	})