mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-06-03 12:57:25 +08:00
fix (MultiGPU): prevent freeze on manual abort when using MultiGPU CFG Split (#14235)
* fix (MultiGPU): prevent freeze on manual abort when using MultiGPU CFG Split Problem: Upon manual abort application hangs indefinitely. `InterruptProcessingException` inherits from `BaseException` and bypasses MultiGPU's worker error handling block so thread dies silently, leaving the main thread waiting forever for `result_q.get()` Fix: Catch `comfy.model_management.InterruptProcessingException` instead of `Exception` so it's caught and passed back via `result_q` to unblock the main thread when manual abort signal fires. * oops
This commit is contained in:
parent
c96fcddb81
commit
e9207aa7cc
@ -54,6 +54,8 @@ class MultiGPUThreadPool:
|
|||||||
try:
|
try:
|
||||||
result = fn(*args, **kwargs)
|
result = fn(*args, **kwargs)
|
||||||
result_q.put((result, None))
|
result_q.put((result, None))
|
||||||
|
except comfy.model_management.InterruptProcessingException as e:
|
||||||
|
result_q.put((None, e))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
result_q.put((None, e))
|
result_q.put((None, e))
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user