mirror of https://github.com/databricks/cli.git
Implement --no-wait for pipelines
This commit is contained in:
parent
4762716f73
commit
15396bce69
|
@ -167,13 +167,13 @@ func (r *pipelineRunner) Run(ctx context.Context, opts *Options) (output.RunOutp
|
||||||
return nil, fmt.Errorf("no progress logger found")
|
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.
|
// Log the pipeline update URL as soon as it is available.
|
||||||
progressLogger.Log(progress.NewPipelineUpdateUrlEvent(w.Config.Host, updateID, pipelineID))
|
progressLogger.Log(progress.NewPipelineUpdateUrlEvent(w.Config.Host, updateID, pipelineID))
|
||||||
|
|
||||||
|
if opts.NoWait {
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
|
|
||||||
// Poll update for completion and post status.
|
// Poll update for completion and post status.
|
||||||
// Note: there is no "StartUpdateAndWait" wrapper for this API.
|
// Note: there is no "StartUpdateAndWait" wrapper for this API.
|
||||||
var prevState *pipelines.UpdateInfoState
|
var prevState *pipelines.UpdateInfoState
|
||||||
|
|
Loading…
Reference in New Issue