Skip to content

feat: run vLLM startup through prestart hooks - #358

Draft
jasonwang-runpod wants to merge 1 commit into
mainfrom
feat/prestart-hooks
Draft

jasonwang-runpod wants to merge 1 commit into
mainfrom
feat/prestart-hooks

Conversation

@jasonwang-runpod

Copy link
Copy Markdown

Problem

vLLM starts before the SDK, so unrecognized startup failures stay in worker logs instead of reaching queued requests.

Solution

Run startup under SDK prestart supervision while keeping jobs queued until startup settles. Preserve existing retries and startup_error responses for known configuration failures. Unrecognized failures now fail one queued job with prestart_failed, include vLLM output, and exit so the platform can restart the worker.

Blocked on a stable Runpod SDK 2.0.x release on PyPI.

Testing

  • 147 worker tests, lint, and vLLM flag checks passed.
  • Live A40 / vLLM 0.31.0 smoke against SDK main 4473f30a: queue prompt, chat, streaming, cold starts, and startup failure reporting.
  • Hosted API smoke used a fake vLLM backend; existing local-input and realtime SDK limitations remain.

@velaraptor-runpod
velaraptor-runpod self-requested a review October 20, 2026 01:20
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.

1 participant