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

Expose gunicorn_worker_class via Config #2084

Merged
merged 1 commit into from Oct 31, 2023

Conversation

masenf
Copy link
Collaborator

@masenf masenf commented Oct 30, 2023

Rather than plumbing through every possible uvicorn parameter that users might need in production, expose the gunicorn_worker_class in the config, which allows downstream code to completely control the worker configuration as needed.

Most users will not need to set this knob, but the moment one needs to tweak websocket protocol flags, timeout values, or the wealth of uvicorn config knobs for tweaking, then it's straightforward to override the worker class and apply these behavior changes.

Fix #2070

Rather than plumbing through every possible uvicorn parameter that users might
need in production, expose the gunicorn_worker_class in the config, which
allows downstream code to completely control the worker configuration as
needed.

Most users will not need to set this knob, but the moment one needs to tweak
websocket protocol flags, timeout values, or the wealth of uvicorn config knobs
for tweaking, then it's straightforward to override the worker class and apply
these behavior changes.

Fix #2070
@picklelo picklelo merged commit 8eb68a0 into main Oct 31, 2023
37 checks passed
@picklelo picklelo deleted the masenf/config-gunicorn-worker-class branch November 1, 2023 19:09
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.

None yet

3 participants