From adc5f83146f898cd2743313e619fff47141799f7 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期一, 28 八月 2023 10:46:25 +0800 Subject: [PATCH] 去掉获取工艺参数重试,增加plc写入失败重试 --- crontask/cron_task.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/crontask/cron_task.go b/crontask/cron_task.go index da60256..fd53267 100644 --- a/crontask/cron_task.go +++ b/crontask/cron_task.go @@ -11,7 +11,7 @@ func InitTask() error { s := gocron.NewScheduler(time.UTC) - _, err := s.Every(2).Seconds().StartImmediately().Do(func() { + _, err := s.Every(10).Seconds().StartImmediately().Do(func() { plcConfig, code := service.NewDevicePlcService().GetDevicePlc() if code != ecode.OK { return -- Gitblit v1.8.0