From 15396bce69273100d21662076afa484e9e66c639 Mon Sep 17 00:00:00 2001 From: Lennart Kats Date: Mon, 3 Jul 2023 16:47:21 +0200 Subject: [PATCH] Implement --no-wait for pipelines --- bundle/run/pipeline.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bundle/run/pipeline.go b/bundle/run/pipeline.go index dc8fd5ae3..7b82c3eae 100644 --- a/bundle/run/pipeline.go +++ b/bundle/run/pipeline.go @@ -167,13 +167,13 @@ func (r *pipelineRunner) Run(ctx context.Context, opts *Options) (output.RunOutp return nil, fmt.Errorf("no progress logger found") } - if opts.NoWait { - log.Warnf(ctx, "--no-wait is not yet implemented for pipelines") - } - // Log the pipeline update URL as soon as it is available. progressLogger.Log(progress.NewPipelineUpdateUrlEvent(w.Config.Host, updateID, pipelineID)) + if opts.NoWait { + return nil, nil + } + // Poll update for completion and post status. // Note: there is no "StartUpdateAndWait" wrapper for this API. var prevState *pipelines.UpdateInfoState