Improve storage recheck task and add more specs.

This commit is contained in:
Andrey Antukh 2021-01-25 16:14:54 +01:00 committed by Hirunatan
parent 340d1d43be
commit a69a35a0b6
3 changed files with 36 additions and 5 deletions

View file

@ -193,11 +193,11 @@
:fn (ig/ref :app.tasks.file-xlog-gc/handler)}
{:id "storage-gc"
:cron #app/cron "0 0 0 */1 * ?" ;; daily
:cron #app/cron "0 0 */6 * * ?" ;; every 6 hours
:fn (ig/ref :app.storage/gc-task)}
{:id "storage-recheck"
:cron #app/cron "0 0 0 */1 * ?" ;; daily
:cron #app/cron "0 0 */6 * * ?" ;; every 6 hours
:fn (ig/ref :app.storage/recheck-task)}
{:id "tasks-gc"