From 2167baf85fe11c5bf6550d3f9fdf23754d1a1d2c Mon Sep 17 00:00:00 2001 From: Guillaume Lours Date: Mon, 16 Nov 2026 13:03:13 +0100 Subject: [PATCH] docs(api): state that EventProcessor.Done reports cancellation as failure Signed-off-by: Guillaume Lours --- pkg/api/event.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/api/event.go b/pkg/api/event.go index c07f9c2d7..4477be929 100644 --- a/pkg/api/event.go +++ b/pkg/api/event.go @@ -125,6 +125,7 @@ type EventProcessor interface { // On notify about (sub)task and progress processing operation On(events ...Resource) // Done is triggered as a Compose operation completed. - // success is true when the operation completed without error. + // success is true when the operation completed without error; it is false + // when the operation failed, including when it was cancelled (e.g. Ctrl-C). Done(operation string, success bool) }