capabilities.work

Drain Active Runs Then Delete Job

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

Recipe · 3 steps

Drain Active Runs Then Delete Job

Cancel any active run, then delete the job.

  1. List active runs for the job. Branch to cancel when one exists, otherwise go straight to delete.
  2. Cancel the active run before deleting the job.
  3. Delete the job and all of its associated runs. This is permanent.
What you'll need to have ready
  • job_id: The job to drain and delete.
For your developer

Arazzo workflow databricks:delete-job-and-cleanup-runs, 3 operations: listJobRuns → cancelJobRun → deleteJob. Specs on APIs.io.