Skip to content

Commit

Permalink
Clean up deleted sites from clickhouse cron (#4065)
Browse files Browse the repository at this point in the history
  • Loading branch information
macobo committed May 7, 2024
1 parent 64850cd commit 9f6ea00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9f6ea00

Please sign in to comment.