Add server hooks #1936
Unanswered
abersheeran
asked this question in
Ideas
Replies: 2 comments 2 replies
-
If we add server hooks, like |
Beta Was this translation helpful? Give feedback.
1 reply
-
@tomchristie What do you think? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Similar to Gunicorn.
This will solve more problems for us. For example https://stackoverflow.com/questions/58133694/graceful-shutdown-of-uvicorn-starlette-app-with-websockets . If we provide a
before_shutdown
hook, we can handle it gracefully without dangerously modifying uvicorn's internal code.This is just an idea at the moment.
@encode/maintainers Do anybody have any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions