8000 feat: add custom lease to worker components by ishandhanani · Pull Request #748 · ai-dynamo/dynamo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: add custom lease to worker components #748

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 15 commits into from
Apr 21, 2025
Merged

Conversation

ishandhanani
Copy link
Contributor
@ishandhanani ishandhanani commented Apr 18, 2025

In order to have a clean graceful shutown - we need to ensure that each worker is created with a custom lease. This allows the worker to shutdown without affecting the primary lease.

As a side note - this is one of the first times since GTC where we've done this sort of wiring of something that was written in rust into our bentoml way of serving. I'd like to move away from this and have a much much cleaner connection between the rust code and how our python examples leverage it

@tedzhouhk I believe this wires up both of the TODOs

  1. generate uses the lease in serve_dynamo.py
  2. metrics uses the lease via the new bindings in the worker.py

An open question is if we always want a custom lease for the worker?

TLDR - wiring up #730

@ishandhanani ishandhanani enabled auto-merge (squash) April 19, 2025 00:23
@ishandhanani ishandhanani merged commit c392c34 into main Apr 21, 2025
10 of 12 checks passed
@ishandhanani ishandhanani deleted the ishan/wire-up-lease branch April 21, 2025 17:43
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.

5 participants
0