Implement --no-wait for pipelines

This commit is contained in:
Lennart Kats 2023-07-03 16:47:21 +02:00
parent 4762716f73
commit 15396bce69
1 changed files with 4 additions and 4 deletions

View File

@ -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