🐛 Properly handle fdata features on file-gc task

It also adds a schema validation process after cleaning. If file
does not validates it will be skiped.
This commit is contained in:
Andrey Antukh 2024-02-13 17:34:32 +01:00
parent bc3d268f57
commit afd68fa09d
4 changed files with 284 additions and 245 deletions

View file

@ -222,7 +222,7 @@
(t/is (= 1 (:processed result))))
(let [result (th/run-task! :objects-gc {:min-age 0})]
(t/is (= 1 (:processed result))))
(t/is (= 2 (:processed result))))
;; check if row1 related thumbnail row still exists
(let [[row :as rows] (th/db-query :file-thumbnail