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 with dynamic task parameters

AlexDavies
Contributor

We have a jar method that takes in as a parameter "--date 2022-01-01" and it will process that dates worth of data. However when invoked via a job the date we want to pass in is the day before the job run was started

We could default this in the jar job itself and by default always pull yesterdays date. But this has issues when we repair a run (https://docs.databricks.com/workflows/jobs/jobs.html#repair-an-unsuccessful-job-run); If we repair it more than a day late then the date used will be incorrect. We want it to be based on when the original run took place

Is it possible to pass dynamic parameters to jobs that can utilize properties of the job run that invoked jar method?

0 REPLIES 0

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