mirror of
https://github.com/penpot/penpot.git
synced 2025-07-29 19:27:13 +02:00
🐛 Fix file-xlog-gc task.
And decrease the execution interval of the task to every 2 hours.
This commit is contained in:
parent
5c1290d5b3
commit
1b70283c3a
2 changed files with 5 additions and 6 deletions
|
@ -36,8 +36,8 @@
|
|||
|
||||
(def ^:private
|
||||
sql:delete-files-xlog
|
||||
"delete from task_completed
|
||||
where scheduled_at < now() - ?::interval")
|
||||
"delete from file_change
|
||||
where created_at < now() - ?::interval")
|
||||
|
||||
(defn- handler
|
||||
[{:keys [pool max-age]} _]
|
||||
|
@ -45,5 +45,5 @@
|
|||
(let [interval (db/interval max-age)
|
||||
result (db/exec-one! conn [sql:delete-files-xlog interval])
|
||||
result (:next.jdbc/update-count result)]
|
||||
(log/infof "removed %s rows from file_changes table" result)
|
||||
(log/infof "removed %s rows from file_change table" result)
|
||||
nil)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue