You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason is: on every loop.run_until_complete() a new contextvars context copy is created (and deleted on task exit).
It leads to the situation when context var changed on app.on_startup() stage is not visible in web-handler etc.
P.S.
The fix worth to be backported to 3.5
The text was updated successfully, but these errors were encountered:
GitMate.io thinks possibly related issues are #1196 (Additional handler params for gunicorn worker ), #269 (Worker is broken with latest Gunicorn), #458 ([bug] Gunicorn worker logs are incorrect), #2033 (Support application coroutine factory in web.run_app and gunicorn worker.), and #705 (access log format is invalid when using gunicorn worker).
Like we do for
web.run_app()
already.The reason is: on every
loop.run_until_complete()
a new contextvars context copy is created (and deleted on task exit).It leads to the situation when context var changed on
app.on_startup()
stage is not visible in web-handler etc.P.S.
The fix worth to be backported to 3.5
The text was updated successfully, but these errors were encountered: