Tweak this message

This commit is contained in:
doctorpangloss 2024-02-08 22:56:06 -08:00
parent b3f1ce7ef0
commit bdc843ced1

View File

@ -257,9 +257,9 @@ async def main():
# in a distributed setting, the default prompt worker will not be able to send execution events via the websocket
worker_thread_server = server if not distributed else ServerStub()
if "worker" in args.distributed_queue_roles:
logging.warning(
f"Distributed workers started in the default thread loop cannot notify clients of progress updates. Instead of comfyui or main.py, use comfyui-worker.")
if not distributed or "worker" in args.distributed_queue_roles:
if distributed:
logging.warning(f"Distributed workers started in the default thread loop cannot notify clients of progress updates. Instead of comfyui or main.py, use comfyui-worker.")
threading.Thread(target=prompt_worker, daemon=True, args=(q, worker_thread_server,)).start()
# server has been imported and things should be looking good