Proper graceful shutdown without dropping requests #3756
realfresh
started this conversation in
Show and tell
Replies: 1 comment
-
interesting |
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've finally done it, graceful shutdown that ensures all in-flight requests are completed, connections closed properly, then finally exiting.
This is specific to Kubernetes, and the code below is taken from our codebase, some the imports may not make sense. But I'm sure you will be able to adapt it to your project correctly.
Beta Was this translation helpful? Give feedback.
All reactions