Kaynağa Gözat

关闭回调定时任务

boweniac 1 hafta önce
ebeveyn
işleme
7503998189
1 değiştirilmiş dosya ile 6 ekleme ve 6 silme
  1. 6 6
      crontask/init.go

+ 6 - 6
crontask/init.go

@@ -44,10 +44,10 @@ func ScheduleRun(c *cron.Cron, serverCtx *svc.ServiceContext) {
 		computeStatistic.computeStatistic()
 	})
 
-	l = NewCronTask(context.Background(), serverCtx)
-	c.AddFunc("* * * * *", func() {
-		MaxWorker := 10
-		MaxChannel := 3
-		l.compApiCallback(MaxWorker, MaxChannel)
-	})
+	//l = NewCronTask(context.Background(), serverCtx)
+	//c.AddFunc("* * * * *", func() {
+	//	MaxWorker := 10
+	//	MaxChannel := 3
+	//	l.compApiCallback(MaxWorker, MaxChannel)
+	//})
 }