Skip to content

Support greenlet local auth for model serving #987

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

anshul0713
Copy link

What changes are proposed in this pull request?

Supporting greenlet local auth for model serving. Model serving
use-cases for databricks-sdk used to use thread local to get the
oauth token. This was when model server is a synchronous server.

Model server is now async with gevent and thread locals does
not work here. We instead use greenlet locals which works
with async workers as well.

We leave the old thread local code as well for backward
compatibility

How is this tested?

Unit tests

Copy link

github-actions bot commented Jun 9, 2025

Please ensure that the NEXT_CHANGELOG.md file is updated with any relevant changes.
If this is not necessary for your PR, please include the following in your PR description:
NO_CHANGELOG=true
and rerun the job.

Copy link

github-actions bot commented Jun 9, 2025

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-py

Inputs:

  • PR number: 987
  • Commit SHA: 8b5d0cdf8bb189f63be791517fafddbebb82be2c

Checks will be approved automatically on success.

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