[Enhancement] Patch AsyncOmniEngine try_get_output[_async] hanging issues (#2153)

Signed-off-by: Daniel Huang <daniel1.huang@intel.com>
This commit is contained in:
Daniel Huang authored and GitHub committed 2026-03-26 16:52:01 +08:00
1 parent 029c85393a
commit ce916f4233
2 files changed
+69

No files matched your search

+4
View File
@@ -994,6 +994,8 @@ class AsyncOmniEngine:
try:
return self.output_queue.sync_q.get(timeout=timeout)
except queue.Empty:
if not self.is_alive():
raise RuntimeError("Orchestrator died unexpectedly. See logs above.")
return None
async def try_get_output_async(self) -> dict[str, Any] | None:
@@ -1003,6 +1005,8 @@ class AsyncOmniEngine:
try:
return self.output_queue.sync_q.get_nowait()
except queue.Empty:
if not self.is_alive():
raise RuntimeError("Orchestrator died unexpectedly. See logs above.")
return None
def get_stage_metadata(self, stage_id: int) -> dict[str, Any]: