0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

🐛 Fix worker synchronize cron entries

This commit is contained in:
Alejandro Alonso 2022-07-15 08:03:06 +02:00
parent a958aed058
commit be0c810c5f

View file

@ -501,9 +501,9 @@
(db/exec-one! conn [sql:upsert-cron-task id cron cron])))
(defn- synchronize-cron-entries
[{:keys [pool schedule]}]
[{:keys [pool entries]}]
(db/with-atomic [conn pool]
(run! (partial synchronize-cron-item conn) schedule)))
(run! (partial synchronize-cron-item conn) entries)))
(def sql:lock-cron-task
"select id from scheduled_task where id=? for update skip locked")