← 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
Updated
Closed

Current evaluation

Request to allow custom gunicorn config overrides (worker type, worker count, etc.) in the flask-framework extension. The specific async-worker use case has since been implemented via PR #747 (gevent detection), but the broader arbitrary-config request remains unaddressed. Issue is 693 days old with zero comments, no labels, and no maintainer interaction.

Suggested action: close stale

Reason: The issue's primary use case (async workers) has been implemented by PR #747, which added gevent-based async worker selection and a --args flask sync override, documented in docs/reference/extensions/flask-framework.rst. The broader arbitrary-config request is still technically open, but the issue has had zero engagement for ~2 years (693 days, 0 comments, no labels, no maintainer response). If the broader feature is still needed, it should be re-filed with concrete requirements.

Impact: 35 Quick Win: 21.0 Staleness: 85 Complexity: 40 Confidence: 75 Support Request: 10

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

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 35
Quick Win: 21.0
Staleness: 85
Complexity: 40
Confidence: 75
Support Request: 10
close stale Request to allow custom gunicorn config overrides (worker type, worker count, etc.) in the flask-framework extension. The specific async-worker use case has since been implemented via PR #747 (gevent detection), but the broader arbitrary-config request remains unaddressed. Issue is 693 days old with zero comments, no labels, and no maintainer interaction.
qwen/qwen3.6-35b-a3b
Staleness: 92
Complexity: 40
Confidence: 80
Support Request: 10
close stale Feature request to allow overriding the hardcoded Gunicorn configuration in the Flask extension via env vars, CLI args, or config files. Currently untriaged and inactive for over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 40
Confidence: 80
Support Request: 10
needs triage Feature request to allow overriding the hardcoded gunicorn configuration in the flask-framework extension via env vars, CLI args, or config files. Currently unlabelled and inactive for over 1.5 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 90
Complexity: 25
Confidence: 75
Support Request: 5
needs triage Feature request to allow overriding the hardcoded Gunicorn configuration in the Flask extension via env vars, CLI args, or config files. Currently untriaged with no maintainer response in over 1.7 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 90
Complexity: 45
Confidence: 70
Support Request: 10
needs triage Enable overriding the hardcoded gunicorn config in the Flask extension via env vars, file overrides, or CLI args for custom worker settings. Open, zero comments, inactive for over a year, awaiting triage and assignment.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/rockcraft#747 (confidence 80%)

    PR #747 'feat(extensions): enable async Gunicorn workers for Flask and Django' (commit ba8c0d79) added automatic gevent worker detection and a --args override, directly addressing the issue's stated need for async workers. The broader arbitrary-config request is not covered.

Related issues

Issue Project State Summary Similarity
#747 Feat(extension): Enable Async Gunicorn workers for Flask and Django e… rockcraft merged Merged feature enabling async Gunicorn workers for Flask and Django extensions. Approved by four reviewers with passing CI checks. Minor ReadTheDocs duplicate label warnings were resolved prior to integration.
71%