Skip to content
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

Update uvicorn server configuration and add pool config #2052

Merged
merged 5 commits into from
Jun 3, 2024

Conversation

ogabrielluiz
Copy link
Contributor

The Makefile has been updated to add support for specifying the number of workers for the uvicorn server. The pyproject.toml file has also been updated to upgrade the uvicorn dependency to version 0.30.0. Additionally, the DatabaseService class in service.py has been refactored to use the pool_size and max_overflow settings from the SettingsService. This change allows for better control over the number of connections in the connection pool and the number of connections that can be opened beyond the pool size. The create_engine function has also been modified to pass the pool_size and max_overflow parameters.

…icorn server

⬆️ (pyproject.toml): Upgrade uvicorn dependency to version 0.30.0
…ettings

The DatabaseService class in service.py has been updated to use the pool_size and max_overflow settings from the SettingsService. This change allows for better control over the number of connections in the connection pool and the number of connections that can be opened beyond the pool size. The commit also includes necessary modifications to the create_engine function to pass the pool_size and max_overflow parameters.

Note: The commit message has been generated based on the provided code changes and recent commits.
Copy link

vercel bot commented Jun 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langflow ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 3, 2024 4:08pm

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. python Pull requests that update Python code labels Jun 3, 2024
… URL

The DatabaseService class in service.py has been updated to use the settings_service object for retrieving the database URL instead of directly passing it as a parameter. This change improves code organization and ensures consistency with other services that rely on the settings_service. The necessary modifications have been made in both the DatabaseService class and the DatabaseServiceFactory class.

Note: The commit message has been generated based on the provided code changes and recent commits.
…re parameter

The OpenAIModelComponent class in OpenAIModel.py has been updated to use the float type for the temperature parameter instead of the Optional[float] type. This change ensures consistency and improves code readability. The default value for the temperature parameter remains unchanged at 0.1.

Note: The commit message has been generated based on the provided code changes and recent commits.
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Jun 3, 2024
@ogabrielluiz ogabrielluiz merged commit d2f1448 into dev Jun 3, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests that update Python code size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant