File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
apps/webapp/app/v3/services Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -260,7 +260,11 @@ export class CompleteAttemptService extends BaseService {
260
260
execution,
261
261
} ) ;
262
262
263
- if ( retryConfig ?. outOfMemory ?. machine ) {
263
+ if (
264
+ retryConfig ?. outOfMemory ?. machine &&
265
+ retryConfig . outOfMemory . machine !== taskRunAttempt . taskRun . machinePreset
266
+ ) {
267
+ //we will retry
264
268
isOOMRetry = true ;
265
269
retriableError = true ;
266
270
executionRetry = FailedTaskRunRetryHelper . getExecutionRetry ( {
@@ -479,6 +483,7 @@ export class CompleteAttemptService extends BaseService {
479
483
if ( forceRequeue ) {
480
484
logger . debug ( "[CompleteAttemptService] Forcing retry via queue" , { runId : run . id } ) ;
481
485
await retryViaQueue ( ) ;
486
+ return ;
482
487
}
483
488
484
489
// Workers that never checkpoint between attempts will exit after completing their current attempt if the retry delay exceeds the threshold
You can’t perform that action at this time.
0 commit comments