0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

Improve default update-file webhook batch timeout

This commit is contained in:
Andrey Antukh 2022-12-14 14:15:42 +01:00
parent 801d926946
commit 350e4a1d1b
3 changed files with 2 additions and 3 deletions

View file

@ -152,7 +152,6 @@
:props (:props event)}]
(when (contains? cf/flags :audit-log)
;; NOTE: this operation may cause primary key conflicts on inserts
;; because of the timestamp precission (two concurrent requests), in
;; this case we just retry the operation.

View file

@ -131,7 +131,7 @@
{::climit/queue :update-file
::climit/key-fn :id
::webhooks/event? true
::webhooks/batch-timeout (dt/duration "2s")
::webhooks/batch-timeout (dt/duration "2m")
::webhooks/batch-key webhook-batch-keyfn
::doc/added "1.17"}
[{:keys [pool] :as cfg} {:keys [id profile-id] :as params}]