Skip to content

Commit b47d6e1

Browse files
pause: fix trigger whilst paused logic
* Closes #7016 * The wrong indicator was being used to list tasks for job preparation resulting in duplicate preparation calls.
1 parent 65a00ce commit b47d6e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cylc/flow/scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ def release_tasks_to_run(self) -> bool:
13541354
# finish processing preparing tasks
13551355
pre_prep_tasks.update({
13561356
itask for itask in self.pool.get_tasks()
1357-
if itask.state(TASK_STATUS_PREPARING)
1357+
if itask.waiting_on_job_prep
13581358
})
13591359
else:
13601360
# release queued tasks

0 commit comments

Comments
 (0)