File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
packages/cli-v3/src/entryPoints/managed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,8 @@ export class RunExecution {
64
64
private taskRunProcess ?: TaskRunProcess ;
65
65
private snapshotPoller ?: RunExecutionSnapshotPoller ;
66
66
67
+ private lastHeartbeat ?: Date ;
68
+
67
69
constructor ( opts : RunExecutionOptions ) {
68
70
this . id = randomBytes ( 4 ) . toString ( "hex" ) ;
69
71
this . workerManifest = opts . workerManifest ;
@@ -884,6 +886,8 @@ export class RunExecution {
884
886
if ( ! response . success ) {
885
887
this . sendDebugLog ( "Heartbeat: failed" , { error : response . error } ) ;
886
888
}
889
+
890
+ this . lastHeartbeat = new Date ( ) ;
887
891
}
888
892
889
893
sendDebugLog (
@@ -900,6 +904,7 @@ export class RunExecution {
900
904
snapshotId : this . currentSnapshotId ,
901
905
executionId : this . id ,
902
906
executionRestoreCount : this . restoreCount ,
907
+ lastHeartbeat : this . lastHeartbeat ?. toISOString ( ) ,
903
908
} ,
904
909
} ) ;
905
910
}
You can’t perform that action at this time.
0 commit comments