Closed doc-sheet closed 1 month ago
The handler for Rust is here: https://github.com/getsentry/snuba/blob/869e1a7a063581ee5284bab315498630bff106df/rust_snuba/src/consumer.rs#L242
it seems it may only handle SIGINT and not SIGTERM, but it's not clear.
Patches welcome
Environment
snuba 24.5.1 from https://github.com/getsentry/self-hosted
Steps to Reproduce
kill -s SIGTERM <pid>
or just dodocker stop snuba-spans-consumer
Expected Result
Consumer gracefully stops
Actual Result
Container killed by sigkill
Looks like master process does not propagate signals to rust consumer. For example python version has some handlers for it.