mirror of
https://github.com/penpot/penpot.git
synced 2025-02-15 19:48:22 -05:00
🐛 Fix timeout error on large binfile import
This commit is contained in:
parent
a4a70f81b9
commit
6904cacd0c
1 changed files with 2 additions and 2 deletions
|
@ -72,11 +72,11 @@
|
||||||
;; are not very friendly with virtual threads, and for avoid
|
;; are not very friendly with virtual threads, and for avoid
|
||||||
;; unexpected blocking of other concurrent operations we
|
;; unexpected blocking of other concurrent operations we
|
||||||
;; dispatch that operation to a dedicated executor.
|
;; dispatch that operation to a dedicated executor.
|
||||||
(let [result (px/submit! executor (partial bf.v1/import-files! cfg input))]
|
(let [result (px/invoke! executor (partial bf.v1/import-files! cfg input))]
|
||||||
(db/update! conn :project
|
(db/update! conn :project
|
||||||
{:modified-at (dt/now)}
|
{:modified-at (dt/now)}
|
||||||
{:id project-id})
|
{:id project-id})
|
||||||
(deref result)))))
|
result))))
|
||||||
|
|
||||||
(def ^:private
|
(def ^:private
|
||||||
schema:import-binfile
|
schema:import-binfile
|
||||||
|
|
Loading…
Add table
Reference in a new issue