Skip to content

fix(connector): adapt handle_preemptions to vLLM #34805 interface change#190

Merged
xiaguan merged 1 commit intomasterfrom
fix/handle-preemptions-compat
Apr 3, 2026
Merged

fix(connector): adapt handle_preemptions to vLLM #34805 interface change#190
xiaguan merged 1 commit intomasterfrom
fix/handle-preemptions-compat

Conversation

@xiaguan
Copy link
Copy Markdown
Collaborator

@xiaguan xiaguan commented Apr 1, 2026

Summary

  • vLLM #34805 changed handle_preemptions signature from set[str] to KVConnectorMetadata
  • Add runtime type check in __init__.py to support both old and new vLLM versions
  • Carry preempted_req_ids through PegaConnectorMetadata for new vLLM path

Test plan

  • Deploy with new vLLM (v0.17.2rc1+) — verify preemption no longer crashes with TypeError
  • Deploy with old vLLM — verify preemption still works via set[str] path

🤖 Generated with Claude Code

vLLM #34805 changed handle_preemptions signature from
set[str] to KVConnectorMetadata. Use runtime type check
to support both old and new vLLM versions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@feifei-111 feifei-111 left a comment

Choose a reason for hiding this comment

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

LGTM

@xiaguan xiaguan enabled auto-merge (squash) April 3, 2026 03:54
@xiaguan xiaguan force-pushed the fix/handle-preemptions-compat branch from 0ffd603 to 5867f08 Compare April 3, 2026 04:01
@xiaguan xiaguan merged commit 8068466 into master Apr 3, 2026
18 checks passed
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.

2 participants