From ab4e1536a5060d2896e255e578f973167f6313db Mon Sep 17 00:00:00 2001 From: Robert Wojciechowski Date: Sat, 7 Mar 2026 05:45:11 +0000 Subject: [PATCH] worker launch bug fix --- workers/process/lifecycle.py | 1 + 1 file changed, 1 insertion(+) diff --git a/workers/process/lifecycle.py b/workers/process/lifecycle.py index dd02bc6..d299786 100644 --- a/workers/process/lifecycle.py +++ b/workers/process/lifecycle.py @@ -39,6 +39,7 @@ class ProcessLifecycle: env["CUDA_VISIBLE_DEVICES"] = str(worker_config.get("cuda_device", 0)) env["PYTORCH_CUDA_ALLOC_CONF"] = "expandable_segments:True" env["COMFYUI_MASTER_PID"] = str(os.getpid()) + env["COMFYUI_IS_WORKER"] = "1" cmd = self._manager.build_launch_command(worker_config, comfy_root) cwd = comfy_root