Skip to content

Commit a3c6dc1

Browse files
committed
parse graceful exit timeouts
1 parent 6e3dbd0 commit a3c6dc1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/cli-v3/src/executions/taskRunProcess.ts

+7
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,13 @@ export class TaskRunProcess {
405405
return internalErrorFromUnexpectedExit(error, dockerMode);
406406
}
407407

408+
if (error instanceof GracefulExitTimeoutError) {
409+
return {
410+
type: "INTERNAL_ERROR",
411+
code: TaskRunErrorCodes.GRACEFUL_EXIT_TIMEOUT,
412+
};
413+
}
414+
408415
return {
409416
type: "INTERNAL_ERROR",
410417
code: TaskRunErrorCodes.TASK_EXECUTION_FAILED,

0 commit comments

Comments
 (0)