Skip to content

Commit

Permalink
chore: add stage to json so that it can be used for more stages
Browse files Browse the repository at this point in the history
  • Loading branch information
antheas committed Nov 26, 2024
1 parent c491b24 commit a34ee8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a34ee8f

Please sign in to comment.