mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-24 21:30:15 +08:00
Compare commits
2 Commits
6c08073d31
...
2fc6ddd270
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2fc6ddd270 | ||
|
|
e8d6b9a593 |
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_crashfast(*args, **kwargs):
|
||||
def prompt_worker_failfast(*args, **kwargs):
|
||||
try:
|
||||
return prompt_worker(*args, **kwargs)
|
||||
except Exception:
|
||||
logging.critical("Fatal: prompt_worker crashed", exc_info=True)
|
||||
logging.critical("Unhandled exception in prompt_worker; exiting process.", 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_crashfast, daemon=True, args=(prompt_server.prompt_queue, prompt_server,)).start()
|
||||
threading.Thread(target=prompt_worker_failfast, 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