Skip to content

Commit 9f6ea00

Browse files
authored
Clean up deleted sites from clickhouse cron (plausible#4065)
1 parent 64850cd commit 9f6ea00

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

config/runtime.exs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,9 @@ cloud_cron = [
524524
# Every midnight
525525
{"0 0 * * *", Plausible.Workers.LockSites},
526526
# Daily at 8
527-
{"0 8 * * *", Plausible.Workers.AcceptTrafficUntil}
527+
{"0 8 * * *", Plausible.Workers.AcceptTrafficUntil},
528+
# First sunday of the month, 4:00 UTC
529+
{"0 4 1-7 * SUN", Plausible.Workers.ClickhouseCleanSites}
528530
]
529531

530532
crontab = if(is_selfhost, do: base_cron, else: base_cron ++ cloud_cron)

0 commit comments

Comments
 (0)