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: 

{{job.trigger.type}} not working and throws error on Edit Parameter from Job page

BrianJ
New Contributor II

Following the instruction on the Job Parameter Dynamic values, I am able to use 

{{job.id}}
{{job.name}}
{{job.run_id}}
{{job.repair_count}}
{{job.start_time.[argument]}}
However, when I set trigger_type as trigger_type: {{job.trigger.type}} and hit SAVE, it errors out as below image.

BrianJ_1-1713544000542.png

also, I noticed that the Dynamic values window from the Job parameter Edit Parameters page vs. the official doc has discrepancy - {{job.parameters.[name]}} is missing from the Job parameter Edit Parameters page.

BrianJ_0-1713544144110.png

 

5 REPLIES 5

Rajani
Contributor II

Hi @BrianJ 
I just tested job trigger type it is working fine.
attaching snippets for your reference

Rajani_0-1713758570135.pngRajani_1-1713758574832.png

 

Ajay-Pandey
Esteemed Contributor III

Hi @BrianJ 

 

It's working for me as well 

Thanks @Rajani 

Ajay Kumar Pandey

shan_chandra
Databricks Employee
Databricks Employee

Hi @BrianJ  - As a workaround, can you please add the parameter at the task level instead of the job level - {{job.trigger.type}}. 

@BrianJ  -  Have shared the details with the Databricks Engineering team to have this issue addressed. we assure that the issue will be prioritized and fixed in the next release. Kindly use the workaround to proceed further on this.

BrianJ
New Contributor II

Thanks everyone, I decided to use the Sparkcontext instead.

 

dbutils.notebook.entry_point.getDbutils().notebook().getContext().toJson()

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