From 2304d5720462a0004ef8c948da37bad186883488 Mon Sep 17 00:00:00 2001 From: Tim Pillinger Date: Mon, 2 Dec 2024 16:26:41 +0000 Subject: [PATCH] record run times for Dummy and Sim mode tasks --- cylc/flow/task_events_mgr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cylc/flow/task_events_mgr.py b/cylc/flow/task_events_mgr.py index 8e7a8b8636..29cbface29 100644 --- a/cylc/flow/task_events_mgr.py +++ b/cylc/flow/task_events_mgr.py @@ -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'] -