mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 07:29:08 -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
|
(cond
|
||||||
(seq stypes)
|
(seq stypes)
|
||||||
(do
|
(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)))
|
(assoc file :deleted-at (dt/now)))
|
||||||
|
|
||||||
(-> data :options :components-v2 true?)
|
(-> data :options :components-v2 true?)
|
||||||
(do
|
(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)))
|
(assoc file :deleted-at (dt/now)))
|
||||||
|
|
||||||
:else
|
:else
|
||||||
|
|
|
@ -261,6 +261,7 @@
|
||||||
validate?
|
validate?
|
||||||
rollback?]
|
rollback?]
|
||||||
:or {max-jobs 1
|
:or {max-jobs 1
|
||||||
|
max-items Long/MAX_VALUE
|
||||||
validate? true
|
validate? true
|
||||||
rollback? true}}]
|
rollback? true}}]
|
||||||
|
|
||||||
|
@ -332,7 +333,7 @@
|
||||||
(ps/acquire! sjobs)
|
(ps/acquire! sjobs)
|
||||||
(px/run! executor (partial process-file file-id idx (dt/tpoint)))
|
(px/run! executor (partial process-file file-id idx (dt/tpoint)))
|
||||||
(inc idx))
|
(inc idx))
|
||||||
1
|
0
|
||||||
(->> (db/cursor conn [sql:get-file-ids (or start-at (dt/now))])
|
(->> (db/cursor conn [sql:get-file-ids (or start-at (dt/now))])
|
||||||
(take max-items)
|
(take max-items)
|
||||||
(map :id)))
|
(map :id)))
|
||||||
|
|
Loading…
Add table
Reference in a new issue