From 50a5b499872ffb4d117860063716e4e6cd4cdd43 Mon Sep 17 00:00:00 2001 From: Hilary James Oliver Date: Thu, 14 Dec 2023 15:55:34 +1300 Subject: [PATCH] Transient task proxy comment. --- cylc/flow/task_pool.py | 5 ++--- cylc/flow/task_proxy.py | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cylc/flow/task_pool.py b/cylc/flow/task_pool.py index 809aa4bf9be..621268f753d 100644 --- a/cylc/flow/task_pool.py +++ b/cylc/flow/task_pool.py @@ -1513,12 +1513,11 @@ def spawn_task( not force and set.intersection(flow_nums, old_fnums) ): + if not is_complete: + break if f_wait: flow_wait_done = f_wait break - if not is_complete: - break - # Already spawned, or has manually set outputs. LOG.warning( f"{point}/{name}/{snum:02d}" f"{stringify_flow_nums(flow_nums)}" diff --git a/cylc/flow/task_proxy.py b/cylc/flow/task_proxy.py index c47bbb45ed3..1936c0d5414 100644 --- a/cylc/flow/task_proxy.py +++ b/cylc/flow/task_proxy.py @@ -144,7 +144,8 @@ class TaskProxy: True whilst task is awaiting job prep, reset to False once the preparation has completed. .transient: - This is a transient proxy used for internal purposes. + This is a transient proxy - not to be added to the task pool, but + used e.g. to spawn children, or to get task-specific infomation. Args: tdef: The definition object of this task.