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:
parent
a958aed058
commit
be0c810c5f
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue