From 6557792a98b8bfba42a4cc3cdc9fb5ef5151b738 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 14 May 2021 12:34:55 +0200 Subject: [PATCH] :sparkles: Unify all deletion delays on main config. --- 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 dc8e8927e..c616605a5 100644 --- a/backend/src/app/main.clj +++ b/backend/src/app/main.clj @@ -220,7 +220,7 @@ :app.tasks.tasks-gc/handler {:pool (ig/ref :app.db/pool) - :max-age (dt/duration {:hours 24}) + :max-age cf/deletion-delay :metrics (ig/ref :app.metrics/metrics)} :app.tasks.delete-object/handler @@ -239,12 +239,12 @@ :app.tasks.file-media-gc/handler {:pool (ig/ref :app.db/pool) :metrics (ig/ref :app.metrics/metrics) - :max-age (dt/duration {:hours 48})} + :max-age cf/deletion-delay} :app.tasks.file-xlog-gc/handler {:pool (ig/ref :app.db/pool) :metrics (ig/ref :app.metrics/metrics) - :max-age (dt/duration {:hours 48})} + :max-age cf/deletion-delay} :app.tasks.telemetry/handler {:pool (ig/ref :app.db/pool)