From a34ee8fb9522bc328e107e4bcf06b74037349a2e Mon Sep 17 00:00:00 2001 From: Antheas Kapenekakis Date: Tue, 26 Nov 2024 20:14:36 +0100 Subject: [PATCH] chore: add stage to json so that it can be used for more stages --- lib/src/deploy.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/deploy.rs b/lib/src/deploy.rs index 5638340d..a6b89290 100644 --- a/lib/src/deploy.rs +++ b/lib/src/deploy.rs @@ -49,6 +49,7 @@ pub(crate) struct ImageState { /// Download information #[derive(Debug, serde::Serialize)] pub struct JsonProgress { + pub stage: String, pub done_bytes: u64, pub download_bytes: u64, pub image_bytes: u64, @@ -284,6 +285,7 @@ async fn handle_layer_progress_print_jsonl( let curr = std::time::Instant::now(); if curr.duration_since(last_json_written).as_secs_f64() > 0.2 { let json = JsonProgress { + stage: "fetching".to_string(), done_bytes, download_bytes, image_bytes,