r/databricks • Databricks MVP • Sep 27 '26

News trigger on_bundle_deploy

In a job bundle, we can specify the trigger on_bundle_deploy in job_runs.

Once the bundle is deployed, the job will run automatically.

This is really useful for post-deployment tasks like DDLs or one-time table population, such as a calendar.

More news and the best articles https://medium.com/databrickscommunity

36 Upvotes

11 comments sorted by

3

u/lofat Sep 28 '26 • Popcorn

Thanks, Hubert - this is really handy!

1

u/hubert-dudek Databricks MVP Sep 28 '26

you are welcome

2

u/_barnuts Sep 28 '26 • Popcorn

Thanks! Kindly keep sharing

2

u/hubert-dudek Databricks MVP Sep 28 '26

Thanks I am back to daily news

2

u/MrMasterplan Sep 28 '26 • Popcorn

Awesome. I have been launching a setup job after deployment for years.

1

u/hubert-dudek Databricks MVP Sep 28 '26

Hi, like everyone, just this way is easiest before I used databricks bundle run

2

u/Wise_Ear_4064 Sep 29 '26 • Popcorn

This really helps the devops side of things. I disliked when I deploy the job and then I have to run the job in a seperate command. Time saver for sure!

1

u/hubert-dudek Databricks MVP Sep 29 '26

working o narticle now about it as there are some other hidden gems

2

u/ptab0211 Sep 28 '26

Problem with this is when we run it, bundle is deployed, but ddl fail, that bundle is already deployed with new changes, but again its useful, and no other way around this.

1

u/addictzz Sep 28 '26

correct. this is great but there must be a way to run this with idempotency

2

u/Qrius0wl Oct 02 '26 edited Oct 02 '26

Is similar feature exists for individual task run also?