<?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 Delay in retrieving task variables from a notebook utilizing %run in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/delay-in-retrieving-task-variables-from-a-notebook-utilizing-run/m-p/9648#M4977</link>
    <description>&lt;P&gt;I have a databricks workflow where the first task is to set up task parameters for other notebooks to use later in the process. Since these are variables that are used in all of my notebooks, I have opted to assign them in a shared notebook and call that notebook using %run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the tasks immediately following the the notebook where I am setting the variables and assigning  them I'm getting failures in the %run command due to the variables not being set. I've tried using time.sleep() in the notebook that I'm setting the variables but that hasn't worked. I never had this issue when calling them directly in the notebook, just when calling them in a separate notebook using %run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a known issue where there is a delay between when a variable is set and how soon after it can be called.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Feb 2023 15:32:35 GMT</pubDate>
    <dc:creator>cmilligan</dc:creator>
    <dc:date>2023-02-09T15:32:35Z</dc:date>
    <item>
      <title>Delay in retrieving task variables from a notebook utilizing %run</title>
      <link>https://community.databricks.com/t5/data-engineering/delay-in-retrieving-task-variables-from-a-notebook-utilizing-run/m-p/9648#M4977</link>
      <description>&lt;P&gt;I have a databricks workflow where the first task is to set up task parameters for other notebooks to use later in the process. Since these are variables that are used in all of my notebooks, I have opted to assign them in a shared notebook and call that notebook using %run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the tasks immediately following the the notebook where I am setting the variables and assigning  them I'm getting failures in the %run command due to the variables not being set. I've tried using time.sleep() in the notebook that I'm setting the variables but that hasn't worked. I never had this issue when calling them directly in the notebook, just when calling them in a separate notebook using %run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a known issue where there is a delay between when a variable is set and how soon after it can be called.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 15:32:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delay-in-retrieving-task-variables-from-a-notebook-utilizing-run/m-p/9648#M4977</guid>
      <dc:creator>cmilligan</dc:creator>
      <dc:date>2023-02-09T15:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Delay in retrieving task variables from a notebook utilizing %run</title>
      <link>https://community.databricks.com/t5/data-engineering/delay-in-retrieving-task-variables-from-a-notebook-utilizing-run/m-p/9649#M4978</link>
      <description>&lt;P&gt;Hi @Coleman Milligan​&amp;nbsp;, How are you setting the variables in the shared notebook? Could you please share some code to understand better?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 19:29:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delay-in-retrieving-task-variables-from-a-notebook-utilizing-run/m-p/9649#M4978</guid>
      <dc:creator>Lakshay</dc:creator>
      <dc:date>2023-02-10T19:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Delay in retrieving task variables from a notebook utilizing %run</title>
      <link>https://community.databricks.com/t5/data-engineering/delay-in-retrieving-task-variables-from-a-notebook-utilizing-run/m-p/9650#M4979</link>
      <description>&lt;P&gt;Hi, Please refer: &lt;A href="https://docs.databricks.com/notebooks/notebook-workflows.html" alt="https://docs.databricks.com/notebooks/notebook-workflows.html" target="_blank"&gt;https://docs.databricks.com/notebooks/notebook-workflows.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Could you please provide the error received?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 17:40:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delay-in-retrieving-task-variables-from-a-notebook-utilizing-run/m-p/9650#M4979</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2023-02-15T17:40:23Z</dc:date>
    </item>
  </channel>
</rss>

