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
with Databricks
Cancel any active run, then delete the job.
- List active runs for the job. Branch to cancel when one exists, otherwise go straight to delete.
- Cancel the active run before deleting the job.
- 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.