From 1e69c0cedcd76c300bad12fcb5ef1fee78b1881d Mon Sep 17 00:00:00 2001 From: yunchao Date: Thu, 8 Aug 2024 11:28:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=B8=BA1=E6=97=B6=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E8=BF=9B=E7=A8=8B=E6=8A=A5=E9=94=99=20(closed=20#361)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/gsekit/periodic_tasks/sync_process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/gsekit/periodic_tasks/sync_process.py b/apps/gsekit/periodic_tasks/sync_process.py index c08e487..182da15 100644 --- a/apps/gsekit/periodic_tasks/sync_process.py +++ b/apps/gsekit/periodic_tasks/sync_process.py @@ -41,7 +41,7 @@ def sync_process(bk_biz_id=None): count = len(bk_biz_id_list) for index, biz_id in enumerate(bk_biz_id_list): logger.info(f"[sync_process] start, bk_biz_id={biz_id}") - countdown = calculate_countdown(count, index) + countdown = calculate_countdown(count, index) if count > 1 else 0 sync_biz_process_task.apply_async((biz_id,), countdown=countdown) logger.info(f"[sync_process] bk_biz_id={biz_id} will be run after {countdown} seconds.")