crontask/cron_task.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
crontask/cron_task.go
@@ -24,7 +24,7 @@ totalNumberTimeInterval = 60 } s := gocron.NewScheduler(time.UTC) _, err := s.Every(finishNumberTimeInterval).Seconds().StartImmediately().Do(func() { _, err := s.Every(finishNumberTimeInterval).Seconds().Do(func() { plcConfig, code := service.NewDevicePlcService().GetDevicePlc() if code != ecode.OK { return @@ -73,7 +73,7 @@ }) s.Every(60).Seconds().StartImmediately().Do(SyncProductionProgress) //同步生产数据 s.Every(180).Seconds().Do(SyncProductionProgress) //同步生产数据 s.StartAsync() return nil }