Skip to content

Enable multiple workers for the api server #924

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

Closed

Conversation

surya-prakash-susarla
Copy link

@surya-prakash-susarla surya-prakash-susarla commented May 25, 2025

Summary

Adding a workers param to the cli api_server command to enable launching multiple workers of the api server via the underlying uvicorn server.

Test Results

============================================= 1516 passed, 5 skipped, 166 warnings in 14.13s ============================================

Fixes #925

Copy link

google-cla bot commented May 25, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@surya-prakash-susarla surya-prakash-susarla force-pushed the main branch 2 times, most recently from 7cadf32 to 1559d35 Compare May 25, 2025 08:39
…currency

- Added `workers` argument to the `api_server` CLI command.
- Passed `workers` to Uvicorn config for multi-process support.
- Updated function signatures and test calls to support the new parameter.

Closes #<issue-number-if-applicable>
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.

Support multiple workers when launching api server
1 participant