--timeout-graceful-shutdown not behaving as expected #2098
Unanswered
ichernev
asked this question in
Potential Issue
Replies: 2 comments
-
Has this been solved? |
Beta Was this translation helpful? Give feedback.
0 replies
-
+1 to comment above. Has this been solved? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm running this with latest 0.23.2 version, with the following code.
I start with
And then I run
And when I
ctrl-c
the uvicorn my request is killed immediately, disregarding the graceful period.The funny thing is that the killing of the generator happens even before the shutdown function starts:
Another funny thing is I can't really understand WHAT is causing the task to be cancelled. If I run a basic asyncio loop + handle signal and print inside the generators are not cancelled.
Beta Was this translation helpful? Give feedback.
All reactions