File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -853,6 +853,9 @@ async function logStatus() {
853853 ? undefined
854854 : new Date ( worker . run_finished ) ;
855855
856+ const secondsSinceStarted = runStarted !== undefined
857+ ? ( Date . now ( ) - runStarted . getTime ( ) ) / 1000
858+ : undefined ;
856859 const runDurationSeconds =
857860 runStarted !== undefined && runFinished !== undefined
858861 ? ( runFinished . getTime ( ) - runStarted . getTime ( ) ) / 1000
@@ -868,7 +871,11 @@ async function logStatus() {
868871 info (
869872 ` worker ${ index + 1 } :
870873 path: ${ worker . path }
871- run started: ${ runStarted ? simpleDateTimeString ( runStarted ) : "-" }
874+ run started: ${ runStarted ? simpleDateTimeString ( runStarted ) : "-" } ${
875+ secondsSinceStarted
876+ ? ` (${ formatSeconds ( secondsSinceStarted ) } ago)`
877+ : ""
878+ }
872879 run finished: ${ runFinished ? simpleDateTimeString ( runFinished ) : "-" } ${
873880 runDurationSeconds
874881 ? ` (took ${ formatSeconds ( runDurationSeconds ) } )`
You can’t perform that action at this time.
0 commit comments