I updated retention days to 30 "SENTRY_EVENT_RETENTION_DAYS " in both .env and sentry.conf.py. However when I restart the sentry-cleanup service I still see that it is using the default 90 days.
sentry-cleanup_1 | 2021-10-14T10:45:02.499252630Z SHELL=/bin/bash
sentry-cleanup_1 | 2021-10-14T10:45:02.499283539Z BASH_ENV=/container.env
sentry-cleanup_1 | 2021-10-14T10:45:02.499289045Z 0 0 * * * gosu sentry sentry cleanup --days 90 > /proc/1/fd/1 2>/proc/1/fd/2
The docker compose file uses a variable which is not set in the in the yml. I assume it is read from the environment.
<< : *sentry_defaults
command: ‘“0 0 * * * gosu sentry sentry cleanup --days $SENTRY_EVENT_RETENTION_DAYS”’