Rename prompt_worker_crashfast to prompt_worker_failfast

This commit is contained in:
Li Xiang 2025-12-26 22:12:14 +08:00 committed by GitHub
parent 6c08073d31
commit e8d6b9a593
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -328,7 +328,7 @@ 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}") 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: try:
return prompt_worker(*args, **kwargs) return prompt_worker(*args, **kwargs)
except Exception: except Exception:
@ -375,7 +375,7 @@ def start_comfyui(asyncio_loop=None):
prompt_server.add_routes() prompt_server.add_routes()
hijack_progress(prompt_server) 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: if args.quick_test_for_ci:
exit(0) exit(0)