0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-26 00:19:07 -05:00

Merge pull request #2099 from penpot/superalex-fix-worker-synchronize-cron-entries

🐛 Fix worker synchronize cron entries
This commit is contained in:
Andrey Antukh 2022-07-15 09:42:55 +02:00 committed by GitHub
commit 3e7b9805c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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")