Skip to content

Conversation

adk-swisstopo
Copy link
Member

This adds surprising delay to gunicorn shutdown. Possibly related to how the logging config is loaded.

gunicorn already does it for us if we don't initialise Django too early.
Some things rely on being able to resolve wsgi.application. We don't want that
object to be initialised before gevent had time to do its monkey patching. So
we make wsgi.application a property that is only resolved lazily.
It falls back to the same behaviour of calling get_wsgi_application anyway.
@github-actions github-actions bot added the bug label Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant