mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-26 22:30:19 +08:00
Compare commits
No commits in common. "2fc6ddd270920e3f5933f330d2b63b497c501085" and "6c08073d31c7628eaab1101c4e1075a6451f51d4" have entirely different histories.
2fc6ddd270
...
6c08073d31
6
main.py
6
main.py
@ -328,11 +328,11 @@ def setup_database():
|
||||
logging.error(f"Failed to initialize database. Please ensure you have installed the latest requirements. If the error persists, please report this as in future the database will be required: {e}")
|
||||
|
||||
|
||||
def prompt_worker_failfast(*args, **kwargs):
|
||||
def prompt_worker_crashfast(*args, **kwargs):
|
||||
try:
|
||||
return prompt_worker(*args, **kwargs)
|
||||
except Exception:
|
||||
logging.critical("Unhandled exception in prompt_worker; exiting process.", exc_info=True)
|
||||
logging.critical("Fatal: prompt_worker crashed", exc_info=True)
|
||||
os._exit(1)
|
||||
|
||||
|
||||
@ -375,7 +375,7 @@ def start_comfyui(asyncio_loop=None):
|
||||
prompt_server.add_routes()
|
||||
hijack_progress(prompt_server)
|
||||
|
||||
threading.Thread(target=prompt_worker_failfast, daemon=True, args=(prompt_server.prompt_queue, prompt_server,)).start()
|
||||
threading.Thread(target=prompt_worker_crashfast, daemon=True, args=(prompt_server.prompt_queue, prompt_server,)).start()
|
||||
|
||||
if args.quick_test_for_ci:
|
||||
exit(0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user