|
@@ -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)
|
|
|
+ //})
|
|
|
}
|