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";
26
26
import { resolveLocalEnvVars } from "../utilities/localEnvVars.js" ;
27
27
import type { Metafile } from "esbuild" ;
28
28
import { TaskRunProcessPool } from "./taskRunProcessPool.js" ;
29
+ import { tryCatch } from "@trigger.dev/core/utils" ;
29
30
30
31
export type WorkerRuntimeOptions = {
31
32
name : string | undefined ;
@@ -149,7 +150,13 @@ class DevSupervisor implements WorkerRuntime {
149
150
150
151
// Shutdown the task run process pool
151
152
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
+ }
153
160
}
154
161
}
155
162
You can’t perform that action at this time.
0 commit comments