mirror of
https://github.com/penpot/penpot.git
synced 2025-02-03 12:59:12 -05:00
✨ Add minor logging improvements to worker namespace
This commit is contained in:
parent
750cf05784
commit
a3495800b5
1 changed files with 10 additions and 10 deletions
|
@ -207,10 +207,10 @@
|
||||||
(db/create-array conn "uuid" ids)]]
|
(db/create-array conn "uuid" ids)]]
|
||||||
|
|
||||||
(db/exec-one! conn sql)
|
(db/exec-one! conn sql)
|
||||||
(l/debug :hist "dispatcher: queue tasks"
|
(l/dbg :hist "dispatcher: queue tasks"
|
||||||
:queue queue
|
:queue queue
|
||||||
:tasks (count ids)
|
:tasks (count ids)
|
||||||
:queued res)))
|
:queued res)))
|
||||||
|
|
||||||
(run-batch! [rconn]
|
(run-batch! [rconn]
|
||||||
(try
|
(try
|
||||||
|
@ -433,12 +433,12 @@
|
||||||
|
|
||||||
:else
|
:else
|
||||||
(try
|
(try
|
||||||
(l/debug :hint "worker: executing task"
|
(l/dbg :hint "worker: executing task"
|
||||||
:name (:name task)
|
:name (:name task)
|
||||||
:id (:id task)
|
:id (str (:id task))
|
||||||
:queue queue
|
:queue queue
|
||||||
:worker-id worker-id
|
:worker-id worker-id
|
||||||
:retry (:retry-num task))
|
:retry (:retry-num task))
|
||||||
(handle-task task)
|
(handle-task task)
|
||||||
(catch InterruptedException cause
|
(catch InterruptedException cause
|
||||||
(throw cause))
|
(throw cause))
|
||||||
|
|
Loading…
Add table
Reference in a new issue