From f88f0a25db0ac9d0f17353ddac146ba8badefe1b Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Tue, 18 Feb 2025 13:46:11 -0800 Subject: [PATCH] server: try staged cleanup --- server/src/plugin/runtime/child-process-worker.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/plugin/runtime/child-process-worker.ts b/server/src/plugin/runtime/child-process-worker.ts index f7cf131da..90233aa71 100644 --- a/server/src/plugin/runtime/child-process-worker.ts +++ b/server/src/plugin/runtime/child-process-worker.ts @@ -44,7 +44,8 @@ export abstract class ChildProcessWorker extends EventEmitter implements Runtime kill(): void { if (!this.worker) return; - this.worker.kill('SIGKILL'); + this.worker.kill(); + setTimeout(() => this.worker.kill('SIGKILL'), 1000); this.worker = undefined; }