♻️ Refactor semaphore and executors

This commit is contained in:
Andrey Antukh 2022-09-19 12:25:44 +02:00
parent 12b98c22bc
commit 6f42f4ec45
12 changed files with 293 additions and 207 deletions

View file

@ -315,7 +315,7 @@
(contains? o :changes-with-metadata)))))
(sv/defmethod ::update-file
{::rsem/permits (cf/get :rpc-semaphore-permits-file-update)}
{::rsem/queue :update-file}
[{:keys [pool] :as cfg} {:keys [id profile-id] :as params}]
(db/with-atomic [conn pool]
(db/xact-lock! conn id)