Skip to content

Commit

Permalink
record run times for Dummy and Sim mode tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
wxtim committed Dec 2, 2024
1 parent 644a41c commit 2304d57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cylc/flow/task_events_mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1398,10 +1398,10 @@ def _process_message_succeeded(self, itask, event_time, forced):
"time_run_exit": event_time,
})
# Update mean elapsed time only on task succeeded,
# and only if task is running in live mode:
# (Don't record skip mode run times)
if (
itask.summary['started_time'] is not None
and itask.run_mode == RunMode.LIVE.value
and itask.run_mode != RunMode.SKIP
):
itask.tdef.elapsed_times.append(
itask.summary['finished_time'] -
Expand Down

0 comments on commit 2304d57

Please sign in to comment.