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")

Ajay-Pandey
Databricks MVP

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
Esteemed 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."