Skip to content

Commit

Permalink
If workflow paused, stop tasks just before job submission.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjoliver committed Sep 29, 2021
1 parent 92d66a5 commit a902d5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cylc/flow/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1213,11 +1213,11 @@ def release_queued_tasks(self):
itask.waiting_on_job_prep
]

if (not self.is_paused and
self.stop_mode is None and self.auto_restart_time is None):
if self.stop_mode is None and self.auto_restart_time is None:
# Add newly released tasks to those still preparing.
self.pre_submit_tasks += self.pool.release_queued_tasks()
if self.pre_submit_tasks:
# Submit jobs if workflow not paused.
if self.pre_submit_tasks and not self.is_paused:
self.is_updated = True
self.task_job_mgr.task_remote_mgr.rsync_includes = (
self.config.get_validated_rsync_includes())
Expand Down

0 comments on commit a902d5f

Please sign in to comment.