Replies: 1 comment
-
Sorry, moved to airtai/faststream#965 |
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
-
Hello!
I would like to use this in a project. However, zero downtime is crucial for me. Here's how it looks:
Handling SIGTERM ->
And ideally, I need to wait until all messages are processed before calling
App._shutdown()
.In my case, tasks take a maximum of 15 seconds, so I can do it like this:
But it would be good to implement it in a way that actually waits for the processing of all current messages.
Alternatively, something like
stop_grace_period
- the time between SIGTERM and SIGKILL.I can try to implement it myself.
What do you think about this?
And what ideas are there to wait for all messages to complete?
Beta Was this translation helpful? Give feedback.
All reactions