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
Note that this will run when the lifespan is triggered most of the time but if the lifespan is disable it will run on the first request. So not checking scope["type"] is by design.
I don't think I have lifespan disabled, yet I'm not seeing the middleware initialized until the first HTTP request is received. How do I force eager initialization of the middleware?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I read through #2017 and in particular @adriangb 's comment
I don't think I have
lifespan
disabled, yet I'm not seeing the middleware initialized until the first HTTP request is received. How do I force eager initialization of the middleware?Beta Was this translation helpful? Give feedback.
All reactions