mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 23:18:48 -05:00
💄 Print file name on process-file! helper progress report
This commit is contained in:
parent
e216b10716
commit
d4c91ae44b
2 changed files with 10 additions and 3 deletions
|
@ -418,12 +418,18 @@
|
|||
(cond
|
||||
(seq stypes)
|
||||
(do
|
||||
(l/wrn :hint "found shapes with unknown types" :file-id (str id) :types stypes)
|
||||
(l/wrn :hint "found shapes with unknown types"
|
||||
:file-id (str id)
|
||||
:file-name (:name file)
|
||||
:types stypes)
|
||||
(assoc file :deleted-at (dt/now)))
|
||||
|
||||
(-> data :options :components-v2 true?)
|
||||
(do
|
||||
(l/wrn :hint "found old components-v2 format" :file-id (str id))
|
||||
(l/wrn :hint "found old components-v2 format"
|
||||
:file-id (str id)
|
||||
:file-name (:name file))
|
||||
|
||||
(assoc file :deleted-at (dt/now)))
|
||||
|
||||
:else
|
||||
|
|
|
@ -261,6 +261,7 @@
|
|||
validate?
|
||||
rollback?]
|
||||
:or {max-jobs 1
|
||||
max-items Long/MAX_VALUE
|
||||
validate? true
|
||||
rollback? true}}]
|
||||
|
||||
|
@ -332,7 +333,7 @@
|
|||
(ps/acquire! sjobs)
|
||||
(px/run! executor (partial process-file file-id idx (dt/tpoint)))
|
||||
(inc idx))
|
||||
1
|
||||
0
|
||||
(->> (db/cursor conn [sql:get-file-ids (or start-at (dt/now))])
|
||||
(take max-items)
|
||||
(map :id)))
|
||||
|
|
Loading…
Add table
Reference in a new issue