<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Jobs with dynamic task parameters in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/jobs-with-dynamic-task-parameters/m-p/30963#M22503</link>
    <description>&lt;P&gt;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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to pass dynamic parameters to jobs that can utilize properties of the job run that invoked jar method?&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2022 16:22:27 GMT</pubDate>
    <dc:creator>AlexDavies</dc:creator>
    <dc:date>2022-09-23T16:22:27Z</dc:date>
    <item>
      <title>Jobs with dynamic task parameters</title>
      <link>https://community.databricks.com/t5/data-engineering/jobs-with-dynamic-task-parameters/m-p/30963#M22503</link>
      <description>&lt;P&gt;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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to pass dynamic parameters to jobs that can utilize properties of the job run that invoked jar method?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 16:22:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/jobs-with-dynamic-task-parameters/m-p/30963#M22503</guid>
      <dc:creator>AlexDavies</dc:creator>
      <dc:date>2022-09-23T16:22:27Z</dc:date>
    </item>
  </channel>
</rss>

