← Back to issue list

Passing custom gunicorn config for flask extension

View original Github issue

Metadata

Project
rockcraft
Number
#726
Type
issue
State
open
Author
M7mdisk
Labels
Created
2024-10-07 12:07:42+00:00
Updated
2024-10-09 07:03:07+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done Currently, the gunicorn config is hardcoded [here](https://github.com/canonical/rockcraft/blob/main/extensions/flask-framework/gunicorn.conf.py). However, in many scenarios, it is essential to override some of the settings (Example: changing worker type to async workers, modifying number of workers, etc). This can be done either with a file override, passing the `GUNICORN_CMD_ARGS` env variable, or allowing CLI arguments. See [the docs](https://docs.gunicorn.org/en/stable/settings.html) for more info In my case, we need to use `async` workers instead of the default `sync` ones

Evaluation history

No evaluation history available.