File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
internal-packages/run-engine/src/engine Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -2968,6 +2968,22 @@ export class RunEngine {
2968
2968
const nextAttemptNumber =
2969
2969
latestSnapshot . attemptNumber === null ? 1 : latestSnapshot . attemptNumber + 1 ;
2970
2970
2971
+ if ( retryResult . wasOOMError ) {
2972
+ this . eventBus . emit ( "runAttemptFailed" , {
2973
+ time : failedAt ,
2974
+ run : {
2975
+ id : runId ,
2976
+ status : run . status ,
2977
+ spanId : run . spanId ,
2978
+ error : completion . error ,
2979
+ attemptNumber : latestSnapshot . attemptNumber ?? 0 ,
2980
+ createdAt : run . createdAt ,
2981
+ completedAt : run . completedAt ,
2982
+ taskEventStore : run . taskEventStore ,
2983
+ } ,
2984
+ } ) ;
2985
+ }
2986
+
2971
2987
this . eventBus . emit ( "runRetryScheduled" , {
2972
2988
time : failedAt ,
2973
2989
run : {
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ export type RetryOutcome =
35
35
method : "queue" | "immediate" ;
36
36
settings : TaskRunExecutionRetry ;
37
37
machine ?: string ;
38
+ wasOOMError ?: boolean ;
38
39
} ;
39
40
40
41
export async function retryOutcomeFromCompletion (
@@ -67,6 +68,7 @@ export async function retryOutcomeFromCompletion(
67
68
method : "queue" ,
68
69
machine : oomResult . machine ,
69
70
settings : { timestamp : Date . now ( ) + delay , delay } ,
71
+ wasOOMError : true ,
70
72
} ;
71
73
}
72
74
You can’t perform that action at this time.
0 commit comments