From 7f9101845d671aba9b12ad1df2bd39b3405f280b Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Thu, 15 May 2025 18:59:22 +0200 Subject: [PATCH] report cancelled pull after another one failed Signed-off-by: Nicolas De Loof --- pkg/compose/pull.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkg/compose/pull.go b/pkg/compose/pull.go index 0e70c1892..f1b0fd8e7 100644 --- a/pkg/compose/pull.go +++ b/pkg/compose/pull.go @@ -204,6 +204,16 @@ func (s *composeService) pullServiceImage(ctx context.Context, service types.Ser Platform: platform, }) + if ctx.Err() != nil { + w.Event(progress.Event{ + ID: service.Name, + Status: progress.Warning, + Text: "Warning", + StatusText: "Interrupted", + }) + return "", nil + } + // check if has error and the service has a build section // then the status should be warning instead of error if err != nil && service.Build != nil {