These are some notes on stuff I discovered when delving into running Sneakers workers on Kube recently.
Allow Sneakers to receive SIGTERM
Sneakers has good graceful shutdown handling built-in. When it receives SIGTERM, Sneakers will:
- Stop consuming the queue
- Finish any work that’s in progress on messages that have already been pulled from the queue.