Skip to content

Commit a34ee8f

Browse files
committed
chore: add stage to json so that it can be used for more stages
1 parent c491b24 commit a34ee8f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/deploy.rs

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ pub(crate) struct ImageState {
4949
/// Download information
5050
#[derive(Debug, serde::Serialize)]
5151
pub struct JsonProgress {
52+
pub stage: String,
5253
pub done_bytes: u64,
5354
pub download_bytes: u64,
5455
pub image_bytes: u64,
@@ -284,6 +285,7 @@ async fn handle_layer_progress_print_jsonl(
284285
let curr = std::time::Instant::now();
285286
if curr.duration_since(last_json_written).as_secs_f64() > 0.2 {
286287
let json = JsonProgress {
288+
stage: "fetching".to_string(),
287289
done_bytes,
288290
download_bytes,
289291
image_bytes,

0 commit comments

Comments
 (0)