Skip to content

Commit

Permalink
Fix bug in runahead release with --start-task.'
Browse files Browse the repository at this point in the history
  • Loading branch information
hjoliver committed Jun 17, 2021
1 parent f6e378b commit ae6f065
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cylc/flow/task_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,14 +299,14 @@ def release_runahead_tasks(self):

released = False

# Any finished tasks can be released immediately (this can happen at
# restart when all tasks are initially loaded into the runahead pool).
# And any manually-triggered task.
# At restart all tasks are loaded as runahead-limited, but finished and
# manually-triggered ones (including --start-task) can be released
# immediately. Note runahead release can cause the task pool to change
# size because we spawn parentless tasks on previous-instance release.

for itask in (
itask
for point_id_map in self.main_pool.values()
for itask in point_id_map.values()
for itask in self.get_tasks()
if itask.state.is_runahead
if itask.state(
TASK_STATUS_FAILED,
Expand Down

0 comments on commit ae6f065

Please sign in to comment.