File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,7 @@ export function shouldRetryError(error: TaskRunError): boolean {
179
179
case "TASK_EXECUTION_FAILED" :
180
180
case "TASK_RUN_CRASHED" :
181
181
case "TASK_RUN_HEARTBEAT_TIMEOUT" :
182
+ // TODO: check we really want to retry here, these could be oom errors
182
183
case "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" :
183
184
return true ;
184
185
@@ -535,16 +536,10 @@ export function taskRunErrorEnhancer(error: TaskRunError): EnhanceError<TaskRunE
535
536
}
536
537
}
537
538
538
- const prettyError = prettyInternalErrors [ error . code ] ;
539
-
540
- if ( prettyError ) {
541
- return {
542
- ...error ,
543
- ...prettyError ,
544
- } ;
545
- }
546
-
547
- break ;
539
+ return {
540
+ ...error ,
541
+ ...getPrettyTaskRunError ( error . code ) ,
542
+ } ;
548
543
}
549
544
}
550
545
@@ -607,7 +602,7 @@ export function exceptionEventEnhancer(
607
602
case TaskRunErrorCodes . TASK_PROCESS_SIGTERM : {
608
603
return {
609
604
...exception ,
610
- ...prettyInternalErrors [ exception . type ] ,
605
+ ...getPrettyExceptionEvent ( exception . type ) ,
611
606
} ;
612
607
}
613
608
}
You can’t perform that action at this time.
0 commit comments