cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Jobs API "run now" - How to set task wise parameters

RKNutalapati
Valued Contributor

I have a job with multiple tasks like Task1 -> Task2 -> Task3. I am trying to call the job using api "run now". Task details are below

Task1 - It executes a Note Book with some input parameters

Task2 - It runs using "ABC.jar", so its a jar based task with some parameters

Task3 - It runs based on "XYZ.jar", so its a jar based task with some parameters

So, how I can provide parameters to job api using "run now" command for task1,task2,task3?

2 REPLIES 2

Prabakar
Esteemed Contributor III
Esteemed Contributor III

@Rama Krishna N​ you can refer here https://docs.databricks.com/dev-tools/api/latest/jobs.html#operation/JobsRunNow

"jar_params": [
"john",
"doe",
"35"
],
 
"notebook_params": {
"name": "john doe",
"age": "35"
},

Hi @Prabakar Ammeappin​  : Thanks for quick response, yeah this is good when we have Task1 and Task2 . But in my use case I have task3 as well, so how can I provide parameters for Task3 (i.e. also JAR, but not the same as Task2)

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.