Skip to content

Commit

Permalink
Merge pull request #1039 from PReithofer/main
Browse files Browse the repository at this point in the history
quick fix: change order of checks in operator
  • Loading branch information
JackUrb committed Aug 1, 2023
2 parents eca15cd + cfe15c3 commit 2922d0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mephisto/operations/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,15 +338,15 @@ async def _track_and_kill_runs(self):
tracked_run.force_shutdown = True
if not tracked_run.force_shutdown:
task_run = tracked_run.task_run
if tracked_run.task_launcher.finished_generators is False:
# If the run can still generate assignments, it's
# definitely not done
continue
task_run.update_completion_progress(
task_launcher=tracked_run.task_launcher
)
if not task_run.get_is_completed():
continue
if tracked_run.task_launcher.finished_generators is False:
# If the run can still generate assignments, it's
# definitely not done
continue

tracked_run.client_io.shutdown()
tracked_run.worker_pool.shutdown()
Expand Down

0 comments on commit 2922d0f

Please sign in to comment.