From 6d036dbd6057ab8fc9f98daf059d076e4da10c62 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Mon, 13 May 2024 10:21:29 -0700 Subject: [PATCH] server: fix python runtime worker setup --- server/src/plugin/runtime/python-worker.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/src/plugin/runtime/python-worker.ts b/server/src/plugin/runtime/python-worker.ts index 64e08792f..3bf6b7277 100644 --- a/server/src/plugin/runtime/python-worker.ts +++ b/server/src/plugin/runtime/python-worker.ts @@ -110,6 +110,7 @@ export class PythonRuntimeWorker extends ChildProcessWorker { PYTHONPATH, }, gstEnv, process.env, env), }); + this.setupWorker(); this.worker.stdout.pipe(this.stdout); this.worker.stderr.pipe(this.stderr); @@ -124,7 +125,6 @@ export class PythonRuntimeWorker extends ChildProcessWorker { setup(); this.peerin = this.worker.stdio[3] as Writable; this.peerout = this.worker.stdio[4] as Readable; - this.setupWorker(); return; } @@ -135,7 +135,6 @@ export class PythonRuntimeWorker extends ChildProcessWorker { setup(); this.peerin = this.worker.stdio[3] as Writable; this.peerout = this.worker.stdio[4] as Readable; - this.setupWorker(); return; }