<?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: Dynamic Number of Tasks in Databricks Workflow in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/dynamic-number-of-tasks-in-databricks-workflow/m-p/64978#M32718</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/95683"&gt;@FlexException&lt;/a&gt;&amp;nbsp;Databricks API supports job creation and execution&amp;nbsp;&lt;A href="https://medium.com/@24chynoweth/task-parameters-and-values-in-databricks-workflows-ea4cfbb473b3" target="_blank"&gt;Task Parameters and Values in Databricks Workflows | by Ryan Chynoweth | Medium&lt;/A&gt;&lt;BR /&gt;One possibility is after running earlier job, process the output to create a dynamic number of tasks in subsequent job&lt;/P&gt;</description>
    <pubDate>Fri, 29 Mar 2024 03:46:23 GMT</pubDate>
    <dc:creator>tanyeesern</dc:creator>
    <dc:date>2024-03-29T03:46:23Z</dc:date>
    <item>
      <title>Dynamic Number of Tasks in Databricks Workflow</title>
      <link>https://community.databricks.com/t5/data-engineering/dynamic-number-of-tasks-in-databricks-workflow/m-p/54652#M30139</link>
      <description>&lt;P&gt;Do Databricks workflows support creating a workflow with a dynamic number of tasks?&lt;/P&gt;&lt;P&gt;For example, let's say we have a DAG like this:&lt;/P&gt;&lt;P&gt;T1 -&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; T2(1) -&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T2(2) -&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .....&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; T3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T2(n-1) -&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T2(n) -&amp;gt;&lt;/P&gt;&lt;P&gt;In this case task 1 (T1) executes first and creates 1...n tasks (T2) that can execute in parallel. Then once all of those T2 tasks finish, a T3&amp;nbsp; task can run.&lt;/P&gt;&lt;P&gt;Here you don't know up front how many T2 tasks will exist up front because they rely on the output of T1 (which will change). In my specific case, T1 will generate n rows with each row providing the parameter needed to query a different server in T2.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 14:16:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dynamic-number-of-tasks-in-databricks-workflow/m-p/54652#M30139</guid>
      <dc:creator>FlexException</dc:creator>
      <dc:date>2023-12-05T14:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Number of Tasks in Databricks Workflow</title>
      <link>https://community.databricks.com/t5/data-engineering/dynamic-number-of-tasks-in-databricks-workflow/m-p/54812#M30168</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;really appreciate your reply.&lt;/P&gt;&lt;P&gt;I've looked through those blog posts and do not see any examples of achieving the &lt;STRONG&gt;dynamic&lt;/STRONG&gt; task creation where I can retain the visibility you get through workflows across all the tasks.&lt;/P&gt;&lt;P&gt;Could you point me to an example?&lt;/P&gt;&lt;P&gt;All of the links that you posted lead to the same blog post from mid 2021, maybe I'm missing a key piece here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 01:42:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dynamic-number-of-tasks-in-databricks-workflow/m-p/54812#M30168</guid>
      <dc:creator>FlexException</dc:creator>
      <dc:date>2023-12-07T01:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Number of Tasks in Databricks Workflow</title>
      <link>https://community.databricks.com/t5/data-engineering/dynamic-number-of-tasks-in-databricks-workflow/m-p/54965#M30207</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;would you happen to have more documentation on the process you outlined to achieve the dynamic task creation?&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 13:00:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dynamic-number-of-tasks-in-databricks-workflow/m-p/54965#M30207</guid>
      <dc:creator>FlexException</dc:creator>
      <dc:date>2023-12-09T13:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Number of Tasks in Databricks Workflow</title>
      <link>https://community.databricks.com/t5/data-engineering/dynamic-number-of-tasks-in-databricks-workflow/m-p/64978#M32718</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/95683"&gt;@FlexException&lt;/a&gt;&amp;nbsp;Databricks API supports job creation and execution&amp;nbsp;&lt;A href="https://medium.com/@24chynoweth/task-parameters-and-values-in-databricks-workflows-ea4cfbb473b3" target="_blank"&gt;Task Parameters and Values in Databricks Workflows | by Ryan Chynoweth | Medium&lt;/A&gt;&lt;BR /&gt;One possibility is after running earlier job, process the output to create a dynamic number of tasks in subsequent job&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 03:46:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dynamic-number-of-tasks-in-databricks-workflow/m-p/64978#M32718</guid>
      <dc:creator>tanyeesern</dc:creator>
      <dc:date>2024-03-29T03:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Number of Tasks in Databricks Workflow</title>
      <link>https://community.databricks.com/t5/data-engineering/dynamic-number-of-tasks-in-databricks-workflow/m-p/64983#M32720</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/95683"&gt;@FlexException&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given you can create and update workflows dynamically using their JSON, it may turn out it is a matter of playing around with a JSON. See the blog below - let me know if it helps. Be cautious of how you would manage all of these dynamic changes though:&lt;/P&gt;&lt;P&gt;&lt;A href="https://medium.com/@rishianand.nits/create-update-databricks-workflow-dynamically-abba4b0916b8" target="_blank"&gt;https://medium.com/@rishianand.nits/create-update-databricks-workflow-dynamically-abba4b0916b8&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 06:19:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dynamic-number-of-tasks-in-databricks-workflow/m-p/64983#M32720</guid>
      <dc:creator>YuliyanBogdanov</dc:creator>
      <dc:date>2024-03-29T06:19:00Z</dc:date>
    </item>
  </channel>
</rss>

