From 0da16c72198d39817122d55212a2864a594e7c18 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 4 Dec 2020 16:01:55 +0100 Subject: [PATCH] :sparkles: Make all background task execute daily (instead of hourly). --- backend/src/app/worker.clj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/src/app/worker.clj b/backend/src/app/worker.clj index 5ee7d9d18..2b71beacd 100644 --- a/backend/src/app/worker.clj +++ b/backend/src/app/worker.clj @@ -57,14 +57,14 @@ :fn #'app.tasks.trim-file/handler} {:id "maintenance/delete-executed-tasks" - :cron #app/cron "0 0 */1 * * ?" ;; hourly + :cron #app/cron "0 0 0 */1 * ?" ;; daily :fn #'app.tasks.maintenance/delete-executed-tasks - :props {:max-age #app/duration "48h"}} + :props {:max-age #app/duration "24h"}} {:id "maintenance/delete-old-files-xlog" - :cron #app/cron "0 0 */1 * * ?" ;; hourly + :cron #app/cron "0 0 0 */1 * ?" ;; daily :fn #'app.tasks.maintenance/delete-old-files-xlog - :props {:max-age #app/duration "8h"}} + :props {:max-age #app/duration "12h"}} ]) (defstate executor