From ad2f21326d94d990fbf0826c5373833e1e39b85f Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 13 Mar 2024 01:43:53 +0100 Subject: [PATCH] fix: add more metadata for insert completed_job log --- backend/windmill-queue/src/jobs.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/backend/windmill-queue/src/jobs.rs b/backend/windmill-queue/src/jobs.rs index 291f37dd49..311281f612 100644 --- a/backend/windmill-queue/src/jobs.rs +++ b/backend/windmill-queue/src/jobs.rs @@ -685,6 +685,18 @@ pub async fn add_completed_job< tx.commit().await?; tracing::info!( + %job_id, + root_job = ?queued_job.root_job.map(|x| x.to_string()).unwrap_or_else(|| String::new()), + path = &queued_job.script_path(), + job_kind = ?queued_job.job_kind, + started_at = ?queued_job.started_at.map(|x| x.to_string()).unwrap_or_else(|| String::new()), + duration = ?_duration, + permissioned_as = ?queued_job.permissioned_as, + email = ?queued_job.email, + created_by = queued_job.created_by, + is_flow_step = queued_job.is_flow_step, + language = ?queued_job.language, + success, "inserted completed job: {} (success: {success})", queued_job.id );