From b6b889b3fcd1ecba07aa90f7ec82c6b7d5d5da3f Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期五, 29 十二月 2023 11:49:02 +0800 Subject: [PATCH] 同步加工数过滤掉加工数为0的记录 --- crontask/cron_task.go | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/crontask/cron_task.go b/crontask/cron_task.go index 4cdc34c..d599a87 100644 --- a/crontask/cron_task.go +++ b/crontask/cron_task.go @@ -91,6 +91,9 @@ return } for _, progress := range progressList { + if progress.FinishedQuantity == 0 { + continue + } caller := nsq.NewCaller(fmt.Sprintf(constvar.NsqTopicSyncTaskProgress, conf.Conf.NsqConf.NodeId), "") err = caller.Send(progress) if err != nil { -- Gitblit v1.8.0