cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How do I deploy or run one job if I have multiple jobs in a Databricks Asset Bundle?

cs_de
New Contributor II

How do I deploy or run a single job if I have 2 or more jobs defined in my asset bundle?

$databricks bundle deploy job1 #does not work

 I do not see a flag to identify what job to run.

4 REPLIES 4

madams
Contributor II

What are you trying to solve?  I believe an asset bundle is intended to be deployed as a whole unit (hence why it's a bundle).  Why would you want to deploy one job from it, and not the others?  If there are no changes to an existing job, nothing will be applied.

As far as running just one, `databricks bundle run job1` should work.  https://docs.databricks.com/aws/en/dev-tools/cli/bundle-commands#run-a-job-or-pipeline

cs_de
New Contributor II

 `databricks bundle run job1` works, but  `databricks bundle deploy job1` does not.  

To your point I guess the deploy does not really matter if nothing has changed so maybe I am overthinking it.  

mark_ott
Databricks Employee
Databricks Employee

I haven't done it with multiple jobs, but I think under resources you name multiple jobs, then when you deploy you just call that job key.

 

BigRoux
Databricks Employee
Databricks Employee

Outstanding @mark_ott !

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now