Skip to content

[Enhancement] Patch OmniStage.try_collect() with ray alive checks#1561

Open
pi314ever wants to merge 5 commits intovllm-project:mainfrom
pi314ever:omni-stage-try-collect-ray-patch
Open

[Enhancement] Patch OmniStage.try_collect() with ray alive checks#1561
pi314ever wants to merge 5 commits intovllm-project:mainfrom
pi314ever:omni-stage-try-collect-ray-patch

Conversation

@pi314ever
Copy link
Contributor

PLEASE FILL IN THE PR DESCRIPTION HERE ENSURING ALL CHECKLIST ITEMS (AT THE BOTTOM) HAVE BEEN CONSIDERED.

Purpose

Waiting for OmniStage involves checking the output queue for results. However, try_collect() does not check if ray process has died and will hang indefinitely. This fixes this issue by explicitly checking that the process is alive before attempting to read the output queue. Component of #1557 relating to issue #1346. Complementary part of #1560

Test Plan

Test Result


Essential Elements of an Effective PR Description Checklist
  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan. Please provide the test scripts & test commands. Please state the reasons if your codes don't require additional test scripts. For test file guidelines, please check the test style doc
  • The test results. Please paste the results comparison before and after, or the e2e results.
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model. Please run mkdocs serve to sync the documentation editions to ./docs.
  • (Optional) Release notes update. If your change is user-facing, please update the release notes draft.

BEFORE SUBMITTING, PLEASE READ https://github.com/vllm-project/vllm-omni/blob/main/CONTRIBUTING.md (anything written below this line will be removed by GitHub Actions)

Signed-off-by: Daniel Huang <daniel1.huang@intel.com>
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e5051e2d34

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@pi314ever pi314ever mentioned this pull request Feb 27, 2026
1 task
Signed-off-by: Daniel Huang <daniel1.huang@intel.com>
@pi314ever
Copy link
Contributor Author

@xuechendi

@pi314ever
Copy link
Contributor Author

@hsliuustc0106 ^

Copy link
Contributor

@lishunyang12 lishunyang12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a couple of comments.

assert self._out_q is not None
if self._ray_task_ref is not None and not is_ray_task_alive(self._ray_task_ref, timeout=0):
raise RuntimeError("OmniStage Ray actor died unexpectedly")
try:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth surfacing the underlying failure here? ray.get(self._ray_task_ref) after ray.wait returns ready would give you the actual traceback instead of a generic message.

pi314ever and others added 2 commits February 28, 2026 00:07
Co-authored-by: SYLAR <125541396+lishunyang12@users.noreply.github.com>
Signed-off-by: Daniel Huang <pilotflyer824@gmail.com>
Signed-off-by: Daniel Huang <daniel1.huang@intel.com>
Signed-off-by: Daniel Huang <daniel1.huang@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants