<?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: Databricks Jobs For Each Functionality in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-jobs-for-each-functionality/m-p/88602#M37558</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/119226"&gt;@varshini_reddy&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;While running multiple tasks within a for each loop is not available, there is a simple workaround.&lt;/P&gt;&lt;P&gt;Workaround: create a main notebook to run multiple child notebooks:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Suppose you need to run notebook1, notebook2, and notebook3 within each iteration of the for each loop.&lt;/LI&gt;&lt;LI&gt;Instead of trying to include all three notebooks directly inside the for each, you can create a main notebook that sequentially runs all the required child notebooks.&lt;/LI&gt;&lt;LI&gt;The for each loop will then run this main notebook multiple times, which in turn will execute the child notebooks in sequence.&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="python"&gt;# main_notebook

# Running the first child notebook
dbutils.notebook.run("/path/to/notebook1", timeout_seconds=300)

# Running the second child notebook
dbutils.notebook.run("/path/to/notebook2", timeout_seconds=300)

# Running the third child notebook
dbutils.notebook.run("/path/to/notebook3", timeout_seconds=300)&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 04 Sep 2024 19:47:44 GMT</pubDate>
    <dc:creator>filipniziol</dc:creator>
    <dc:date>2024-09-04T19:47:44Z</dc:date>
    <item>
      <title>Databricks Jobs For Each Functionality</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-jobs-for-each-functionality/m-p/88519#M37546</link>
      <description>&lt;P&gt;Hi Team, I have two questions, please clarigy.&lt;/P&gt;&lt;P&gt;1. can we use multiple tasks inside a for each for databricks jobs&lt;/P&gt;&lt;P&gt;2. is nested for each functionality available?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 14:27:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-jobs-for-each-functionality/m-p/88519#M37546</guid>
      <dc:creator>varshini_reddy</dc:creator>
      <dc:date>2024-09-04T14:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Jobs For Each Functionality</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-jobs-for-each-functionality/m-p/88583#M37553</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/119226"&gt;@varshini_reddy&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Currently you can only use one task inside foreach loop&lt;/P&gt;&lt;P&gt;2. No, currently you cannot nest foreach within another foreach&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 17:02:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-jobs-for-each-functionality/m-p/88583#M37553</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2024-09-04T17:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Jobs For Each Functionality</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-jobs-for-each-functionality/m-p/88602#M37558</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/119226"&gt;@varshini_reddy&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;While running multiple tasks within a for each loop is not available, there is a simple workaround.&lt;/P&gt;&lt;P&gt;Workaround: create a main notebook to run multiple child notebooks:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Suppose you need to run notebook1, notebook2, and notebook3 within each iteration of the for each loop.&lt;/LI&gt;&lt;LI&gt;Instead of trying to include all three notebooks directly inside the for each, you can create a main notebook that sequentially runs all the required child notebooks.&lt;/LI&gt;&lt;LI&gt;The for each loop will then run this main notebook multiple times, which in turn will execute the child notebooks in sequence.&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="python"&gt;# main_notebook

# Running the first child notebook
dbutils.notebook.run("/path/to/notebook1", timeout_seconds=300)

# Running the second child notebook
dbutils.notebook.run("/path/to/notebook2", timeout_seconds=300)

# Running the third child notebook
dbutils.notebook.run("/path/to/notebook3", timeout_seconds=300)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 04 Sep 2024 19:47:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-jobs-for-each-functionality/m-p/88602#M37558</guid>
      <dc:creator>filipniziol</dc:creator>
      <dc:date>2024-09-04T19:47:44Z</dc:date>
    </item>
  </channel>
</rss>

