<?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 Workflows: Running dependent task despite earlier task fail in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/workflows-running-dependent-task-despite-earlier-task-fail/m-p/38970#M643</link>
    <description>&lt;P&gt;I have a scheduled task running in workflow.&lt;BR /&gt;&lt;BR /&gt;Task 1 computes some parameters then these are picked up by a dependent reporting task: Task 2.&lt;/P&gt;&lt;P&gt;I want Task 2 to report "Failure" if Task 1 fails. Yet creating a dependency in workflows means that Task 2 will not run if Task 1 fails.&lt;BR /&gt;&lt;BR /&gt;Any suggestions how I can keep the parameter sharing and dependency from Task 1 to Task 2, yet also allow Task 2 to fire even on failure of Task 1?&lt;BR /&gt;&lt;BR /&gt;Edit: Have screenshot attached now, showing Task 2 skipped on a fail for Task 1.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Aug 2023 05:54:33 GMT</pubDate>
    <dc:creator>sharpbetty</dc:creator>
    <dc:date>2023-08-03T05:54:33Z</dc:date>
    <item>
      <title>Workflows: Running dependent task despite earlier task fail</title>
      <link>https://community.databricks.com/t5/get-started-discussions/workflows-running-dependent-task-despite-earlier-task-fail/m-p/38970#M643</link>
      <description>&lt;P&gt;I have a scheduled task running in workflow.&lt;BR /&gt;&lt;BR /&gt;Task 1 computes some parameters then these are picked up by a dependent reporting task: Task 2.&lt;/P&gt;&lt;P&gt;I want Task 2 to report "Failure" if Task 1 fails. Yet creating a dependency in workflows means that Task 2 will not run if Task 1 fails.&lt;BR /&gt;&lt;BR /&gt;Any suggestions how I can keep the parameter sharing and dependency from Task 1 to Task 2, yet also allow Task 2 to fire even on failure of Task 1?&lt;BR /&gt;&lt;BR /&gt;Edit: Have screenshot attached now, showing Task 2 skipped on a fail for Task 1.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 05:54:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/workflows-running-dependent-task-despite-earlier-task-fail/m-p/38970#M643</guid>
      <dc:creator>sharpbetty</dc:creator>
      <dc:date>2023-08-03T05:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Workflows: Running dependent task despite earlier task fail</title>
      <link>https://community.databricks.com/t5/get-started-discussions/workflows-running-dependent-task-despite-earlier-task-fail/m-p/38981#M645</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt; for your reply!&lt;BR /&gt;&lt;BR /&gt;But I'm a little lost. I have found that if Task 1 fails, Task 2 is skipped, due to the dependency. (See screenshot). So there is no way I can see to execute Task 2 on a failure at Task 1.&lt;BR /&gt;&lt;BR /&gt;I could disconnect the tasks (remove dependency), but my understanding is that if both tasks exist independently in the workflow, they will fire in parallel on schedule, meaning Task 2 doesn't wait for the parameters generated from Task 1.&lt;BR /&gt;&lt;BR /&gt;I also thought of loading the tasks into different workflows, on a staggered schedule, but then I can't pass the parameters between them as they are in different flows.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 05:53:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/workflows-running-dependent-task-despite-earlier-task-fail/m-p/38981#M645</guid>
      <dc:creator>sharpbetty</dc:creator>
      <dc:date>2023-08-03T05:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Workflows: Running dependent task despite earlier task fail</title>
      <link>https://community.databricks.com/t5/get-started-discussions/workflows-running-dependent-task-despite-earlier-task-fail/m-p/67821#M2958</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/85808"&gt;@sharpbetty&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Any suggestions how I can keep the parameter sharing and dependency from Task 1 to Task 2, yet also allow Task 2 to fire even on failure of Task 1?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Setup:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Task 2 dependent on Task1&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;Challenge:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;To Fire Task 2 even on Task 1 Failure&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Solution:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Do "not" Fail Task 1, Handle exception and set parameters in Task 1 ( as suggested by&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;)&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;In Task 2, Utilize Task 1 parameter value to decide next steps&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope this helps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 14:31:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/workflows-running-dependent-task-despite-earlier-task-fail/m-p/67821#M2958</guid>
      <dc:creator>NerdSan</dc:creator>
      <dc:date>2024-05-01T14:31:32Z</dc:date>
    </item>
  </channel>
</rss>

