Skip to content

Commit

Permalink
Fix potential type error
Browse files Browse the repository at this point in the history
  • Loading branch information
MetRonnie committed Sep 4, 2024
1 parent f30f0c2 commit 61789a1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cylc/flow/task_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,9 @@ def check_abort_on_task_fails(self):
"""
return self.abort_task_failed

def spawn_on_output(self, itask, output, forced=False):
def spawn_on_output(
self, itask: TaskProxy, output: str, forced: bool = False
) -> None:
"""Spawn child-tasks of given output, into the pool.
Remove the parent task from the pool if complete.
Expand Down Expand Up @@ -1419,7 +1421,10 @@ def spawn_on_output(self, itask, output, forced=False):
if not in_pool:
self.add_to_pool(t)

if t.point <= self.runahead_limit_point:
if (
self.runahead_limit_point is not None
and t.point <= self.runahead_limit_point
):
self.rh_release_and_queue(t)

# Event-driven suicide.
Expand Down

0 comments on commit 61789a1

Please sign in to comment.