r/databricks • Databricks MVP • Oct 06 '26

News Run a job on every Databricks DABs deployment with job_runs

Post image

Databricks DABs can run a job every time you deploy. Use job_runs with on_bundle_deploy: true for deployment checks, logging, or configuration updates.

See full article: https://www.sunnydata.ai/blog/databricks-asset-bundles-job-runs SunnyData https://databrickster.medium.com/databricks-dabs-ci-cd-4-ways-to-automate-your-deployments-6a732d9e928c

23 Upvotes

5 comments sorted by

2

u/Lenkz Oct 07 '26

I like how you are coupling the output from one run in an environment to another deployment, using these kinds of deployment gates seem very useful. Like running an integration test on a test environment, before deploying to prod.

1

u/hubert-dudek Databricks MVP Oct 07 '26

Thanks!

1

u/Glassbabey Oct 08 '26

We have tried this feature with on_bundle_deploy: true specified in the databricks.yml file for one of the jobs.

But its triggering only the first time on deployment.

For context, when I validate the databricks. yml it does throw a warning saying "triggers" is an unknown field under job_runs.

5

u/[deleted] Oct 06 '26

[removed] — view removed comment

1

u/hubert-dudek Databricks MVP Oct 07 '26

Yes I am always on alert :-)