From 37507c3697d96ee4e5ba3eb8c38153401fffe985 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 8 Apr 2024 11:53:33 +0200 Subject: [PATCH] :paperclip: Update logging on worker module --- backend/src/app/worker/dispatcher.clj | 2 +- backend/src/app/worker/runner.clj | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/src/app/worker/dispatcher.clj b/backend/src/app/worker/dispatcher.clj index dbdb06042..9b901747f 100644 --- a/backend/src/app/worker/dispatcher.clj +++ b/backend/src/app/worker/dispatcher.clj @@ -56,7 +56,7 @@ (db/create-array conn "uuid" ids)]] (db/exec-one! conn sql) - (l/trc :hist "queue tasks" + (l/trc :hist "enqueue tasks on redis" :queue queue :tasks (count ids) :queued res))) diff --git a/backend/src/app/worker/runner.clj b/backend/src/app/worker/runner.clj index 40332ab23..11ca3d972 100644 --- a/backend/src/app/worker/runner.clj +++ b/backend/src/app/worker/runner.clj @@ -140,20 +140,20 @@ :else (try (l/trc :hint "start task" - :queue queue - :runner-id id :name (:name task) :task-id (str task-id) + :queue queue + :runner-id id :retry (:retry-num task)) (let [tpoint (dt/tpoint) result (handle-task task) elapsed (dt/format-duration (tpoint))] (l/trc :hint "end task" - :queue queue - :runner-id id :name (:name task) :task-id (str task-id) + :queue queue + :runner-id id :retry (:retry-num task) :elapsed elapsed)