<?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 Re: Passing Parameters *between* Workflow run_job steps in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/passing-parameters-between-workflow-run-job-steps/m-p/153566#M53974</link>
    <description>&lt;P&gt;Quick update, my question effectively boils down to:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Do databricks workflows have &lt;U&gt;&lt;STRONG&gt;"global" variables&lt;/STRONG&gt;&lt;/U&gt; that can be set programmatically from anywhere in the workflow (e.g. nested notebook task inside a parent run_job task) during runtime and be referenced anywhere else in the workflow, regardless of scope?&lt;/P&gt;&lt;P&gt;Consulting with LLMs, I have some partial answers but still would appreciate some feedback from the community!&lt;/P&gt;&lt;P&gt;Updates on my considered approaches:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The first option I think wouldn't work as I was hoping due to variable scoping&lt;/LI&gt;&lt;LI&gt;The second option seems like it's still a viable option, but the same challenges/trickiness persist&lt;/LI&gt;&lt;LI&gt;Other options I've seen proposed elsewhere:&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;DBFS/Cloud Storage (e.g. file with runtime information saved and referenced elsewhere during job run)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;External DB/Table (e.g.&amp;nbsp;tasks read/write key-value pairs to a shared Delta table or external database)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Mon, 06 Apr 2026 21:09:22 GMT</pubDate>
    <dc:creator>ChristianRRL</dc:creator>
    <dc:date>2026-04-06T21:09:22Z</dc:date>
    <item>
      <title>Passing Parameters *between* Workflow run_job steps</title>
      <link>https://community.databricks.com/t5/data-engineering/passing-parameters-between-workflow-run-job-steps/m-p/153562#M53972</link>
      <description>&lt;P&gt;Hi there, I'm trying to reference a task value - let's call it `output_path` (not known until programmatically generated by the code) - that is created in a nested task (Child 1) within a run_job (Parent 1) as an input parameter - let's call it `input_path` - for a downstream run_job (Parent 2). I understand that due to the way variable scoping works, this may not be typically possible and am looking into some possible ways to do this.&lt;/P&gt;&lt;P&gt;Some approaches I'm considering currently:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a "placeholder" task or run_job parameter variable that is updated by the nested task (Child 1)&lt;UL&gt;&lt;LI&gt;Pro: explicit and clear reference of variable&lt;/LI&gt;&lt;LI&gt;Con: more challenging to scale + seems a bit brittle&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;Use the REST API `&lt;A href="https://docs.databricks.com/api/workspace/jobs/getrunoutput" target="_self"&gt;/api/2.2/jobs/runs/get-output&lt;/A&gt;` to set &amp;amp; get the variable&lt;/LI&gt;&lt;LI&gt;Pro: overall seems easier to scale&lt;UL&gt;&lt;LI&gt;Con: more challenging to implement + it requiring the value to be passed through `dbutils.notebook.exit()` seems a bit limiting&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Please let me know if there are other/better approaches I may not be considering, or else if one of the above options is generally more or less recommended.&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;NOTE: Trying to paste an image, but lately the paste functionality has not been working. Attached a reference image as well in case the image paste didn't go through&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2026 19:56:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/passing-parameters-between-workflow-run-job-steps/m-p/153562#M53972</guid>
      <dc:creator>ChristianRRL</dc:creator>
      <dc:date>2026-04-06T19:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Parameters *between* Workflow run_job steps</title>
      <link>https://community.databricks.com/t5/data-engineering/passing-parameters-between-workflow-run-job-steps/m-p/153566#M53974</link>
      <description>&lt;P&gt;Quick update, my question effectively boils down to:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Do databricks workflows have &lt;U&gt;&lt;STRONG&gt;"global" variables&lt;/STRONG&gt;&lt;/U&gt; that can be set programmatically from anywhere in the workflow (e.g. nested notebook task inside a parent run_job task) during runtime and be referenced anywhere else in the workflow, regardless of scope?&lt;/P&gt;&lt;P&gt;Consulting with LLMs, I have some partial answers but still would appreciate some feedback from the community!&lt;/P&gt;&lt;P&gt;Updates on my considered approaches:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The first option I think wouldn't work as I was hoping due to variable scoping&lt;/LI&gt;&lt;LI&gt;The second option seems like it's still a viable option, but the same challenges/trickiness persist&lt;/LI&gt;&lt;LI&gt;Other options I've seen proposed elsewhere:&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;DBFS/Cloud Storage (e.g. file with runtime information saved and referenced elsewhere during job run)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;External DB/Table (e.g.&amp;nbsp;tasks read/write key-value pairs to a shared Delta table or external database)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 06 Apr 2026 21:09:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/passing-parameters-between-workflow-run-job-steps/m-p/153566#M53974</guid>
      <dc:creator>ChristianRRL</dc:creator>
      <dc:date>2026-04-06T21:09:22Z</dc:date>
    </item>
  </channel>
</rss>

