Skip to content

fix(snapshot): cherry-pick exit vLLM source without engine teardown (#12184) - #12490

Merged
nv-nmailhot merged 1 commit into
release/1.4.0from
schwinns/cherrypick-12184-release-1.4.0
Aug 3, 2026
Merged

fix(snapshot): cherry-pick exit vLLM source without engine teardown (#12184)#12490
nv-nmailhot merged 1 commit into
release/1.4.0from
schwinns/cherrypick-12184-release-1.4.0

Conversation

@galletas1712

@galletas1712 galletas1712 commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Cherry-picks merged #12184 (be65a2136809dc74985555bc754d03b53d510108) onto release/1.4.0.

  • Exits the vLLM snapshot source path without tearing down the engine
  • Signed-off cherry-pick for DCO compliance

Main PR

#12184

Test plan

  • Release-branch CI passes
  • Confirm no merge dependencies with other cherry-picks

Open in Devin Review

Signed-off-by: Schwinn Saereesitthipitak <galletas1712@users.noreply.github.com>
Signed-off-by: Schwinn Saereesitthipitak <schwinns@nvidia.com>
@galletas1712
galletas1712 requested review from a team as code owners July 31, 2026 14:18
@github-actions github-actions Bot added fix backend::vllm Relates to the vllm backend labels Jul 31, 2026

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

Open in Devin Review

Comment on lines 49 to +51
if not await snapshot_controller.wait_for_restore():
raise SystemExit(0)
logger.info("vLLM snapshot captured successfully")
os._exit(0)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔍 SGLang snapshot path still uses SystemExit(0), leaving engine teardown on that backend

components/src/dynamo/sglang/snapshot.py:165-166 still raises SystemExit(0) in the same not-restored branch. If the motivation for os._exit(0) here (avoid engine teardown/destructors during snapshot capture, matching the TRT-LLM path) also applies to SGLang, that backend remains inconsistent and can still tear down the engine after capture. Worth confirming whether the SGLang path was intentionally left alone.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

@datadog-official

datadog-official Bot commented Jul 31, 2026

Copy link
Copy Markdown

Pipelines

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 29.62% (-17.92%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 84c8431 | Docs | Datadog PR Page | Give us feedback!

@nv-nmailhot
nv-nmailhot merged commit ebe9e59 into release/1.4.0 Aug 3, 2026
228 of 238 checks passed
@nv-nmailhot
nv-nmailhot deleted the schwinns/cherrypick-12184-release-1.4.0 branch August 3, 2026 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend::vllm Relates to the vllm backend fix size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants