Azure Databricks · Arazzo Workflow
Azure Databricks Clean Up the Latest Completed Job Run
Version 1.0.0
Find a job's latest completed run, confirm it, and delete it.
View Spec
View on GitHub
AnalyticsApache SparkBig DataData EngineeringMachine LearningArazzoWorkflows
Provider
Workflows
cleanup-latest-job-run
Delete a job's most recent completed run after confirming it ended.
Lists completed runs for a job, captures the latest run_id, confirms it is TERMINATED via getJobRun, then deletes it.
1
listCompletedRuns
listJobRuns
List the completed runs for the job, ordered newest first, and capture the run_id of the most recent run.
2
confirmTerminated
getJobRun
Read the latest run and confirm its life_cycle_state is TERMINATED before deleting, since active runs cannot be deleted.
3
deleteRun
deleteJobRun
Delete the confirmed non-active run, removing it from the job's run history.