comfy: log where rust can find them

This commit is contained in:
Kasisnu
2024-08-09 16:26:45 +05:30
parent 9d2b09b492
commit 24f7e6ebcb
2 changed files with 8 additions and 7 deletions
@@ -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
@@ -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)