0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-03 04:49:03 -05:00

💄 Change worker logging

This commit is contained in:
Andrey Antukh 2022-12-15 11:33:10 +01:00
parent d38c495807
commit f2e2700c79

View file

@ -217,7 +217,7 @@
(l/debug :hist "dispatcher: queue tasks" (l/debug :hist "dispatcher: queue tasks"
:queue queue :queue queue
:tasks (count ids) :tasks (count ids)
:total-queued res))) :queued res)))
(run-batch! [rconn] (run-batch! [rconn]
(db/with-atomic [conn pool] (db/with-atomic [conn pool]
@ -446,10 +446,11 @@
:else :else
(try (try
(l/debug :hint "worker: executing task" (l/debug :hint "worker: executing task"
:name (:name task)
:id (:id task)
:queue queue
:worker-id worker-id :worker-id worker-id
:task-id (:id task) :retry (:retry-num task))
:task-name (:name task)
:task-retry (:retry-num task))
(handle-task task) (handle-task task)
(catch InterruptedException cause (catch InterruptedException cause
(throw cause)) (throw cause))