From 24f7e6ebcbeaa67a417f0a64e56126c816b88df0 Mon Sep 17 00:00:00 2001 From: Kasisnu <5044120+kasisnu@users.noreply.github.com> Date: Fri, 9 Aug 2024 16:26:45 +0530 Subject: [PATCH] comfy: log where rust can find them --- .../comfy/ComfyLauncher/ComfyLivePortraitRunner.py | 2 +- .../comfy/ComfyLauncher/ComfyRunnerForSidecar.py | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/workflows/comfy/ComfyLauncher/ComfyLivePortraitRunner.py b/workflows/comfy/ComfyLauncher/ComfyLivePortraitRunner.py index fc58dd0..cd64afe 100644 --- a/workflows/comfy/ComfyLauncher/ComfyLivePortraitRunner.py +++ b/workflows/comfy/ComfyLauncher/ComfyLivePortraitRunner.py @@ -164,7 +164,7 @@ def wait_for_comfy_startup(server_address, timeout=SERVER_START_TIMEOUT, termina async def main(): - outer_retries = 2 + outer_retries = 1 restart_trigger_file = args.server_restart_trigger_file pipeline_type = PipelineType.BASE diff --git a/workflows/comfy/ComfyLauncher/ComfyRunnerForSidecar.py b/workflows/comfy/ComfyLauncher/ComfyRunnerForSidecar.py index d6e0527..ab9e074 100644 --- a/workflows/comfy/ComfyLauncher/ComfyRunnerForSidecar.py +++ b/workflows/comfy/ComfyLauncher/ComfyRunnerForSidecar.py @@ -263,12 +263,13 @@ async def main(): if not args.skip_comfy_startup: print("Starting comfy server") try: - await asyncio.create_subprocess_exec( - "../venv/bin/python", "main.py", "--highvram", "--disable-metadata", cwd=COMFY_ROOT_DIRECTORY, - stdout=subprocess.PIPE, - stderr=subprocess.PIPE, - stdin=subprocess.PIPE - ) + comfyui_process = subprocess.Popen(["../venv/bin/python", "main.py", "--highvram", "--disable-metadata"], cwd=COMFY_ROOT_DIRECTORY, stderr=subprocess.STDOUT, stdin=subprocess.PIPE) + # await asyncio.create_subprocess_exec( + # "../venv/bin/python", "main.py", "--highvram", "--disable-metadata", cwd=COMFY_ROOT_DIRECTORY, + # stdout=subprocess.STDOUT, + # stderr=subprocess.STDOUT, + # stdin=subprocess.PIPE + # ) except Exception as e: print("Error while starting comfy server") print(e)