Lifespan usage concurrently with @app.startup, @app.shutdown events #2192
-
As a Fastapi user, i found it very confusing that using the newly proposed lifespan methodology, SILENTLY ignores any @app.startup and/or @app.shutdown methods. Fastapi does not mention anything like that in their documentation (although, for completeness sake, I DO believe that it should), and I cannot find anything on Starlette docs either. There is a discussion on Fastapi (fastapi/fastapi#9604) redirecting users to Starlette for the proper docs. I am not claiming it is Starlette's fault, but without ANY kind of mentions or warnings, this is very tricky to debug. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There should probably be a warning. If there's not, you're welcome to make a PR. |
Beta Was this translation helpful? Give feedback.
There should probably be a warning. If there's not, you're welcome to make a PR.