Question about workers graceful shutdown #178
Unanswered
RobertoPrevato
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Hello @RobertoPrevato, I have a question about the example you provided to better understand your use-case: what happens with Granian? Does it raise the |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I would like to listen to
SIGINT
andSIGTERM
signals to stop loops when using long-polling or SSE, but these signals are not emitted when Granian stops workers.For example, the following case works well with
uvicorn
andhypercorn
, but not withgranian
because of that reason:https://github.com/Neoteroi/BlackSheep-Examples/tree/main/server-sent-events
How can I know when Granian is about to stop workers to do some clean-up needed before the ASGI lifespan stop event (use case discussed also under this thread)?
Beta Was this translation helpful? Give feedback.
All reactions