From b332ddad2a527aadd563eb215116aba131751230 Mon Sep 17 00:00:00 2001 From: Oliver Sanders Date: Tue, 28 Nov 2023 09:53:54 +0000 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Hilary James Oliver --- cylc/flow/task_pool.py | 1 + tests/integration/test_task_pool.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cylc/flow/task_pool.py b/cylc/flow/task_pool.py index e964d2bfedb..2c7a8eabb32 100644 --- a/cylc/flow/task_pool.py +++ b/cylc/flow/task_pool.py @@ -370,6 +370,7 @@ def compute_runahead(self, force=False) -> bool: # * tasks with partially satisfied prereqs # * tasks with incomplete xtriggers # * held tasks + # * queued tasks itask.state(TASK_STATUS_WAITING) # unfinished tasks (back-compat mode) diff --git a/tests/integration/test_task_pool.py b/tests/integration/test_task_pool.py index c53ec3819fe..e7cc93ebe46 100644 --- a/tests/integration/test_task_pool.py +++ b/tests/integration/test_task_pool.py @@ -1264,7 +1264,7 @@ async def test_compute_runahead( This test ensures that: * Runahead tasks are excluded from computations see https://github.com/cylc/cylc-flow/issues/5825 - * Tasks are initiated with the correct is_runahead status on statup. + * Tasks are initiated with the correct is_runahead status on startup. * Behaviour is the same in compat/regular modes. * Behaviour is the same for integer/datetime cycling modes.