mirror of https://github.com/databricks/cli.git
dd554412a6
## Changes If before running an app, the app was stopped with an active deployment, then Apps backend start it and does the auto-deploy of the last active deployment. In such cases StartApp API won't return any active or pending deployments in its response but doing the deploy immediately after the start might result in the error `Cannot deploy app *** as there is an active deployment in progress`. From DABs side, we have to do a new deployment on every `bundle run` (command which start the app and does deployment) because local files in bundle might have been changed and users expect to have the app running with new code. Thus this PR works around the error by catching “deployment in progress” error, getting any active / pending deployments, waits for them to finish and start the new deployment again. If 2nd attempts fails, the whole command fails. ## Tests Added unit test. |
||
---|---|---|
.. | ||
output | ||
progress | ||
app.go | ||
app_test.go | ||
args.go | ||
args_test.go | ||
job.go | ||
job_args.go | ||
job_args_test.go | ||
job_options.go | ||
job_options_test.go | ||
job_test.go | ||
options.go | ||
pipeline.go | ||
pipeline_options.go | ||
pipeline_options_test.go | ||
pipeline_test.go | ||
runner.go | ||
runner_test.go |