databricks-cli/bundle/run
shreyas-goenka 3bab21e72e
Fix race condition when restarting continuous jobs (#1849)
## Changes
We don't need to cancel existing runs when the job is continuous and
unpaused. The `/jobs/run-now` command will cancel the existing run and
trigger a new one automatically.

Cancelling the job manually can cause a race condition where both the
manual trigger from the CLI and the continuous trigger from the job
configuration happens at the same time. This PR prevents that from
happening.

## Tests
Unit tests and manually
2024-10-22 14:59:17 +00:00
..
output Do not include empty output in job run output (#749) 2023-09-08 09:52:45 +00:00
progress Upgrade Go SDK to 0.44.0 (#1679) 2024-08-15 13:23:07 +00:00
args.go Processing and completion of positional args to bundle run (#1120) 2024-04-22 11:50:13 +00:00
args_test.go Processing and completion of positional args to bundle run (#1120) 2024-04-22 11:50:13 +00:00
job.go Fix race condition when restarting continuous jobs (#1849) 2024-10-22 14:59:17 +00:00
job_args.go Processing and completion of positional args to bundle run (#1120) 2024-04-22 11:50:13 +00:00
job_args_test.go Processing and completion of positional args to bundle run (#1120) 2024-04-22 11:50:13 +00:00
job_options.go Group bundle run flags by job and pipeline types (#1174) 2024-02-06 14:51:02 +00:00
job_options_test.go Group bundle run flags by job and pipeline types (#1174) 2024-02-06 14:51:02 +00:00
job_test.go Fix race condition when restarting continuous jobs (#1849) 2024-10-22 14:59:17 +00:00
keys.go Use interactive prompt to select resource to run if not specified (#762) 2023-09-11 18:03:12 +00:00
keys_test.go Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
options.go Make sure grouped flags are added to the command flag set (#1180) 2024-02-07 10:27:13 +00:00
pipeline.go Fix race condition when restarting continuous jobs (#1849) 2024-10-22 14:59:17 +00:00
pipeline_options.go Add `--validate-only` flag to run validate-only pipeline update (#1251) 2024-03-04 08:38:32 +00:00
pipeline_options_test.go Add `--validate-only` flag to run validate-only pipeline update (#1251) 2024-03-04 08:38:32 +00:00
pipeline_test.go Fix race condition when restarting continuous jobs (#1849) 2024-10-22 14:59:17 +00:00
runner.go Fix race condition when restarting continuous jobs (#1849) 2024-10-22 14:59:17 +00:00
runner_test.go Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00