@@ -242,6 +242,14 @@ class ManagedRunController {
242
242
243
243
if ( ! response . success ) {
244
244
console . error ( "[ManagedRunController] Heartbeat failed" , { error : response . error } ) ;
245
+
246
+ this . sendDebugLog ( {
247
+ runId : this . runFriendlyId ,
248
+ message : "heartbeat: failed" ,
249
+ properties : {
250
+ error : response . error ,
251
+ } ,
252
+ } ) ;
245
253
}
246
254
} ,
247
255
intervalMs : this . heartbeatIntervalSeconds * 1000 ,
@@ -624,6 +632,14 @@ class ManagedRunController {
624
632
if ( ! continuationResult . success ) {
625
633
console . error ( "Failed to continue execution" , { error : continuationResult . error } ) ;
626
634
635
+ this . sendDebugLog ( {
636
+ runId : run . friendlyId ,
637
+ message : "failed to continue execution" ,
638
+ properties : {
639
+ error : continuationResult . error ,
640
+ } ,
641
+ } ) ;
642
+
627
643
this . waitForNextRun ( ) ;
628
644
return ;
629
645
}
@@ -766,6 +782,14 @@ class ManagedRunController {
766
782
if ( ! start . success ) {
767
783
console . error ( "[ManagedRunController] Failed to start run" , { error : start . error } ) ;
768
784
785
+ this . sendDebugLog ( {
786
+ runId : runFriendlyId ,
787
+ message : "failed to start run attempt" ,
788
+ properties : {
789
+ error : start . error ,
790
+ } ,
791
+ } ) ;
792
+
769
793
this . waitForNextRun ( ) ;
770
794
return ;
771
795
}
@@ -850,6 +874,14 @@ class ManagedRunController {
850
874
error : completionResult . error ,
851
875
} ) ;
852
876
877
+ this . sendDebugLog ( {
878
+ runId : run . friendlyId ,
879
+ message : "completion: failed to submit after error" ,
880
+ properties : {
881
+ error : completionResult . error ,
882
+ } ,
883
+ } ) ;
884
+
853
885
this . waitForNextRun ( ) ;
854
886
return ;
855
887
}
@@ -1139,6 +1171,14 @@ class ManagedRunController {
1139
1171
error : completionResult . error ,
1140
1172
} ) ;
1141
1173
1174
+ this . sendDebugLog ( {
1175
+ runId : run . friendlyId ,
1176
+ message : "completion: failed to submit" ,
1177
+ properties : {
1178
+ error : completionResult . error ,
1179
+ } ,
1180
+ } ) ;
1181
+
1142
1182
this . waitForNextRun ( ) ;
1143
1183
return ;
1144
1184
}
0 commit comments