When running Snuba in Kubernetes, environment variables (such as BATCH_JOIN_TIMEOUT) are always provided as strings. However, Snuba’s code appears to compare them as if they were integers, leading to an error:
TypeError: '>' not supported between instances of 'str' and 'int'
Steps to reproduce
- Deploy Snuba (getsentry/snuba) in a Kubernetes environment.
- Set the environment variable BATCH_JOIN_TIMEOUT=120 (or any numeric value) in the Deployment spec.
- Observe Snuba logs on startup or during runtime, where a TypeError is raised when comparing the string to an integer.