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: 

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)

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!