Skip to content

Commit

Permalink
task pool: demote log message to DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-sanders committed Mar 11, 2025
1 parent 48d3d38 commit db8b551
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions cylc/flow/task_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -1764,17 +1764,22 @@ def spawn_task(

if prev_status in TASK_STATUSES_FINAL:
# Task finished previously.
msg = f"[{point}/{name}:{prev_status}] already finished"
if itask.is_complete():
msg += " and completed"
msg = "and completed"
itask.transient = True
else:
# revive as incomplete.
msg += " incomplete"

LOG.info(
f"{msg} {repr_flow_nums(flow_nums, full=True)})"
)
msg = "incomplete"

Check warning on line 1772 in cylc/flow/task_pool.py

View check run for this annotation

Codecov / codecov/patch

cylc/flow/task_pool.py#L1772

Added line #L1772 was not covered by tests

if cylc.flow.flags.verbosity >= 1:
# avoid unnecessary compute when we are not in debug mode
id_ = itask.tokens.duplicate(
task_sel=prev_status
).relative_id_with_selectors
LOG.debug(
f"[{id_}] already finished {msg}"
f" {repr_flow_nums(flow_nums, full=True)})"
)
if prev_flow_wait:
self._spawn_after_flow_wait(itask)

Expand Down

0 comments on commit db8b551

Please sign in to comment.