From d8bc027bb0e3a525e67e618768d8eb74f40a43ac Mon Sep 17 00:00:00 2001 From: yunchao Date: Mon, 2 Dec 2024 16:59:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B6=85=E5=A4=A7=E8=AE=A2=E9=98=85?= =?UTF-8?q?=E6=96=B9=E6=A1=88=20(closed=20#2429)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/node_man/tools/job.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/apps/node_man/tools/job.py b/apps/node_man/tools/job.py index a30e052a3..d69e64ebe 100644 --- a/apps/node_man/tools/job.py +++ b/apps/node_man/tools/job.py @@ -167,8 +167,6 @@ def update_job_statistics(cls, job: models.Job, status_counter: Dict[str, int]): statistics[f"{status.lower()}_count"] = sum([counter.get(status, 0) for counter in status_counter_list]) statistics["total_count"] = sum(statistics.values()) - job.status = constants.JobStatusType.RUNNING - if statistics["total_count"] == 0: # 总数为零,认为是任务准备阶段 job.status = constants.JobStatusType.PENDING