capabilities.work

Cancel a Job's Active Run

A 3-step recipe with Databricks. We can help you get access.

Recipe · 3 steps

Cancel a Job's Active Run

Locate a job's active run and cancel it.

  1. List active runs for the job and capture the first active run_id.
  2. Cancel the active run. Cancellation is asynchronous; the run transitions to a TERMINATING state.
  3. Read the run back to confirm it has left the RUNNING state after the cancel request.
What you'll need to have ready
  • job_id: The job whose active run should be cancelled.
For your developer

Arazzo workflow databricks:cancel-active-run, 3 operations: listJobRuns → cancelJobRun → getJobRun. Specs on APIs.io.