Clean up deleted sites from clickhouse cron (#4065)

This commit is contained in:
Karl-Aksel Puulmann 2024-05-07 15:03:32 +03:00 committed by GitHub
parent 64850cd00f
commit 9f6ea00a72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -524,7 +524,9 @@ cloud_cron = [
# Every midnight
{"0 0 * * *", Plausible.Workers.LockSites},
# Daily at 8
{"0 8 * * *", Plausible.Workers.AcceptTrafficUntil}
{"0 8 * * *", Plausible.Workers.AcceptTrafficUntil},
# First sunday of the month, 4:00 UTC
{"0 4 1-7 * SUN", Plausible.Workers.ClickhouseCleanSites}
]
crontab = if(is_selfhost, do: base_cron, else: base_cron ++ cloud_cron)