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: 

Databricks Job Params

ajithgaade
New Contributor III

Hi,
Job params override the task params(same name params). Is there a way task params override the job params.

Use case:
job params: a = "param-1".

job has 12 tasks. 10 of them should use job param(a = "param-1").

2 of them should override the job param(a = "different param -1")

4 REPLIES 4

Ajay-Pandey
Esteemed Contributor III

Hi @ajithgaade 

You can use foreach Activity in Databricks workflow to achieve this.

Note - foreach Activity is in Private Preview now

Ajay Kumar Pandey

@Ajay-Pandey 
please can you provide the doc link and sample code?

ajithgaade
New Contributor III

is there any conf we can set for task params override the job params?

szymon_dybczak
Contributor III

Hi @ajithgaade,

Unfortunately, I don't think it is currently possible. It's clearly stated in documentation that:

" Job parameters take precedence over task parameters. If a job parameter and a task parameter have the same key, the job parameter overrides the task parameter."


Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group