Skip to content

Commit

Permalink
minor fix to retry_task_map
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodong-Yang committed Jun 21, 2024
1 parent 7277102 commit 4454ffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/otaclient_common/retry_task_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def ensure_tasks(
).start()

# ------ ensure all tasks are finished ------ #
while self._total_task_num != 0 and self._finished_task == self._total_task_num:
while self._total_task_num == 0 or self._finished_task != self._total_task_num:
# shutdown by upper caller or interpreter exits
if self._shutdown or _retry_task_map_global_shutdown:
_err_msg = f"failed to ensure all tasks, {self._finished_task=}, {self._total_task_num=}"
Expand Down

0 comments on commit 4454ffb

Please sign in to comment.