Skip to content

Commit

Permalink
feat: 超大订阅方案 (closed #2429)
Browse files Browse the repository at this point in the history
  • Loading branch information
wyyalt committed Dec 2, 2024
1 parent 9c33d8a commit d8bc027
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions apps/node_man/tools/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8bc027

Please sign in to comment.