Parcourir la source

更改定时任务执行周期

boweniac il y a 6 jours
Parent
commit
abc6822331
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      crontask/init.go

+ 1 - 1
crontask/init.go

@@ -50,7 +50,7 @@ func ScheduleRun(c *cron.Cron, serverCtx *svc.ServiceContext) {
 	//})
 
 	contactForm := NewCronTask(context.Background(), serverCtx)
-	c.AddFunc("@every 5m", func() {
+	c.AddFunc("1 0 * * *", func() {
 		contactForm.analyze()
 	})