From ebb745cc114ad6c1fdcce30ae006e3ba2cdf3e1f Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 9 Feb 2021 18:55:31 +0100 Subject: [PATCH] :sparkles: More improvements on background task scheduling. --- backend/src/app/main.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/app/main.clj b/backend/src/app/main.clj index ae2ece00e..e26d84a92 100644 --- a/backend/src/app/main.clj +++ b/backend/src/app/main.clj @@ -192,7 +192,7 @@ :fn (ig/ref :app.tasks.file-media-gc/handler)} {:id "file-xlog-gc" - :cron #app/cron "0 0 0 */1 * ?" ;; daily + :cron #app/cron "0 0 */1 * * ?" ;; hourly :fn (ig/ref :app.tasks.file-xlog-gc/handler)} {:id "storage-deleted-gc" @@ -204,7 +204,7 @@ :fn (ig/ref :app.storage/gc-touched-task)} {:id "storage-recheck" - :cron #app/cron "0 0 */2 * * ?" ;; every 2 hours + :cron #app/cron "0 0 */1 * * ?" ;; hourly :fn (ig/ref :app.storage/recheck-task)} {:id "tasks-gc" @@ -260,7 +260,7 @@ :app.tasks.file-xlog-gc/handler {:pool (ig/ref :app.db/pool) :metrics (ig/ref :app.metrics/metrics) - :max-age (dt/duration {:hours 24})} + :max-age (dt/duration {:hours 48})} :app.tasks.telemetry/handler {:pool (ig/ref :app.db/pool)