♻️ Refactor file-media-gc task (mainly add more traces).

This commit is contained in:
Andrey Antukh 2020-12-11 15:09:48 +01:00 committed by Alonso Torres
parent 9ed01cc0df
commit 4849904b0b
3 changed files with 106 additions and 105 deletions

View file

@ -18,7 +18,7 @@
[app.tasks.maintenance]
[app.tasks.remove-media]
[app.tasks.sendmail]
[app.tasks.trim-file]
[app.tasks.file-media-gc]
[app.util.async :as aa]
[app.util.time :as dt]
[clojure.core.async :as a]
@ -52,9 +52,9 @@
:cron #app/cron "0 0 0 */1 * ? *" ;; daily
:fn #'app.tasks.remove-media/trim-media-storage}
{:id "trim-file"
{:id "file-media-gc"
:cron #app/cron "0 0 0 */1 * ? *" ;; daily
:fn #'app.tasks.trim-file/handler}
:fn #'app.tasks.file-media-gc/handler}
{:id "maintenance/delete-executed-tasks"
:cron #app/cron "0 0 0 */1 * ?" ;; daily