Skip to content

Commit

Permalink
update: added operation_job_status
Browse files Browse the repository at this point in the history
  • Loading branch information
heemankv committed Dec 19, 2024
1 parent cda15dd commit dbed2f4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crates/orchestrator/src/jobs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -468,10 +468,9 @@ pub async fn verify_job(id: Uuid, config: Arc<Config>) -> Result<(), JobError> {
}
};

attributes.push(KeyValue::new(
"operation_job_status",
format!("{}", operation_job_status.expect("operation_job_status not found")),
));
if let Some(job_status) = operation_job_status {
attributes.push(KeyValue::new("operation_job_status", format!("{}", job_status)));
}

tracing::info!(log_type = "completed", category = "general", function_type = "verify_job", block_no = %internal_id, "General verify job completed for block");
let duration = start.elapsed();
Expand Down

0 comments on commit dbed2f4

Please sign in to comment.