From 60704bca17661aa86d8344f785a9d5f090f4f0c8 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 9 Feb 2021 16:15:19 +0100 Subject: [PATCH] :sparkles: Change background tasks schedule. --- backend/src/app/main.clj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/src/app/main.clj b/backend/src/app/main.clj index 02cc651b4..ae2ece00e 100644 --- a/backend/src/app/main.clj +++ b/backend/src/app/main.clj @@ -192,19 +192,19 @@ :fn (ig/ref :app.tasks.file-media-gc/handler)} {:id "file-xlog-gc" - :cron #app/cron "0 0 */6 * * ?" ;; every 2 hours + :cron #app/cron "0 0 0 */1 * ?" ;; daily :fn (ig/ref :app.tasks.file-xlog-gc/handler)} {:id "storage-deleted-gc" - :cron #app/cron "0 0 */6 * * ?" ;; every 6 hours + :cron #app/cron "0 0 1 */1 * ?" ;; daily (1 hour shift) :fn (ig/ref :app.storage/gc-deleted-task)} {:id "storage-touched-gc" - :cron #app/cron "0 30 */6 * * ?" ;; every 6 hours + :cron #app/cron "0 0 2 */1 * ?" ;; daily (2 hour shift) :fn (ig/ref :app.storage/gc-touched-task)} {:id "storage-recheck" - :cron #app/cron "0 0 */6 * * ?" ;; every 6 hours + :cron #app/cron "0 0 */2 * * ?" ;; every 2 hours :fn (ig/ref :app.storage/recheck-task)} {:id "tasks-gc"