Skip to content

WIP: Fix monkey patching#608

Draft
adk-swisstopo wants to merge 4 commits into
developfrom
fix-monkey-patching
Draft

WIP: Fix monkey patching#608
adk-swisstopo wants to merge 4 commits into
developfrom
fix-monkey-patching

Conversation

@adk-swisstopo
Copy link
Copy Markdown
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