File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import pLimit from "p-limit";
2626import { resolveLocalEnvVars } from "../utilities/localEnvVars.js" ;
2727import type { Metafile } from "esbuild" ;
2828import { TaskRunProcessPool } from "./taskRunProcessPool.js" ;
29+ import { tryCatch } from "@trigger.dev/core/utils" ;
2930
3031export type WorkerRuntimeOptions = {
3132 name : string | undefined ;
@@ -149,7 +150,13 @@ class DevSupervisor implements WorkerRuntime {
149150
150151 // Shutdown the task run process pool
151152 if ( this . taskRunProcessPool ) {
152- await this . taskRunProcessPool . shutdown ( ) ;
153+ const [ shutdownError ] = await tryCatch ( this . taskRunProcessPool . shutdown ( ) ) ;
154+
155+ if ( shutdownError ) {
156+ logger . debug ( "[DevSupervisor] shutdown, task run process pool failed to shutdown" , {
157+ error : shutdownError ,
158+ } ) ;
159+ }
153160 }
154161 }
155162
You can’t perform that action at this time.
0 commit comments