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'] -