Skip to content

feat: gracefully shutdown endpoint by revoking etcd lease + python binding #730

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 18, 2025

Conversation

tedzhouhk
Copy link
Contributor

@tedzhouhk tedzhouhk commented Apr 17, 2025

Endpoint will gracefully shutdown (graceful = finish all generation TCP stream) after a (child) etcd lease is revoked.
Add this feature to the python binding example.

This PR is based on this commit from @ryanolson . Thanks for the prototype!

Copy link

copy-pr-bot bot commented Apr 17, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@tedzhouhk tedzhouhk changed the title feat: endpoint gracefully shutdown + python binding feat: gracefully shutdown endpoint by revoking etcd lease + python binding Apr 17, 2025
Copy link
Contributor

@ishandhanani ishandhanani left a comment

Choose a reason for hiding this comment

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

LGTM - another rust convert I see :)

Copy link
Contributor

@alec-flowers alec-flowers left a comment

Choose a reason for hiding this comment

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

Approved. Pls address comments before merging.

@tedzhouhk tedzhouhk enabled auto-merge (squash) April 18, 2025 18:14
@tedzhouhk tedzhouhk merged commit 4c38680 into main Apr 18, 2025
8 checks passed
@tedzhouhk tedzhouhk deleted the hzhou/grace_shutdown branch April 18, 2025 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants