mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-02-02 19:49:15 +01:00
Don't hang the task if something other than the renderer fails (e.g. model loading)
This commit is contained in:
parent
a289945e8e
commit
f00e1a92d8
@ -372,6 +372,8 @@ def thread_render(device):
|
|||||||
session_cache.keep(task.request.session_id, TASK_TTL)
|
session_cache.keep(task.request.session_id, TASK_TTL)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
task.error = e
|
task.error = e
|
||||||
|
task.response = {"status": 'failed', "detail": str(task.error)}
|
||||||
|
task.buffer_queue.put(json.dumps(task.response))
|
||||||
print(traceback.format_exc())
|
print(traceback.format_exc())
|
||||||
continue
|
continue
|
||||||
finally:
|
finally:
|
||||||
|
Loading…
Reference in New Issue
Block a user