[Bugfix] raise error in diffusion engine and fix offload test (#933)

Signed-off-by: zjy0516 <riverclouds.zhu@qq.com>
Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
This commit is contained in:
Jiangyun ZhuandHongsheng Liu authored and GitHub committed 2026-01-25 23:04:11 +08:00
1 parent 7f0825832a
commit 578ed1967e
4 files changed
+136 -133

No files matched your search

+3
View File
@@ -62,6 +62,9 @@ class Scheduler:
raise RuntimeError("Result queue not initialized")
output = self.result_mq.dequeue()
# {"status": "error", "error": str(e)}
if isinstance(output, dict) and output.get("status") == "error":
raise RuntimeError("worker error")
return output
except zmq.error.Again:
logger.error("Timeout waiting for response from scheduler.")