From 9f6ea00a721edef6b7477b518ffbe0e24df30cae Mon Sep 17 00:00:00 2001 From: Karl-Aksel Puulmann Date: Tue, 7 May 2024 15:03:32 +0300 Subject: [PATCH] Clean up deleted sites from clickhouse cron (#4065) --- config/runtime.exs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/runtime.exs b/config/runtime.exs index 9cebd88ade99..12e17488ea3e 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -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)