<?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 How to handle timeout exception in Error Handle Task in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-handle-timeout-exception-in-error-handle-task/m-p/92363#M38416</link>
    <description>&lt;P&gt;Dear team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a workflow like this, task_a, task_b and handle_error. How I handle any timeout exception from task_a and task_b or any future task in future and log into handle error task at the end.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jensen Nguyen&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NhanNguyen_1-1727750059373.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11596i56C7B1CE32342624/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NhanNguyen_1-1727750059373.png" alt="NhanNguyen_1-1727750059373.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Oct 2024 02:35:32 GMT</pubDate>
    <dc:creator>NhanNguyen</dc:creator>
    <dc:date>2024-10-01T02:35:32Z</dc:date>
    <item>
      <title>How to handle timeout exception in Error Handle Task</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-handle-timeout-exception-in-error-handle-task/m-p/92363#M38416</link>
      <description>&lt;P&gt;Dear team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a workflow like this, task_a, task_b and handle_error. How I handle any timeout exception from task_a and task_b or any future task in future and log into handle error task at the end.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jensen Nguyen&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NhanNguyen_1-1727750059373.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11596i56C7B1CE32342624/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NhanNguyen_1-1727750059373.png" alt="NhanNguyen_1-1727750059373.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 02:35:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-handle-timeout-exception-in-error-handle-task/m-p/92363#M38416</guid>
      <dc:creator>NhanNguyen</dc:creator>
      <dc:date>2024-10-01T02:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle timeout exception in Error Handle Task</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-handle-timeout-exception-in-error-handle-task/m-p/101816#M40844</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/84885"&gt;@NhanNguyen&lt;/a&gt;&amp;nbsp;thanks for your question!&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Have you maybe consider to:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Define a Global Error Task: Add a handle_error task in the workflow that runs conditionally on task failure.&lt;/LI&gt;
&lt;LI&gt;Set Failure Conditions: In the UI or through JSON, configure the handle_error task with a "run if any upstream task fails" condition.&lt;/LI&gt;
&lt;/UL&gt;
&lt;LI-CODE lang="markup"&gt;{
    "tasks": [
        {
            "task_key": "task_a",
            "libraries": [],
            "timeout_seconds": 3600
        },
        {
            "task_key": "task_b",
            "depends_on": [{"task_key": "task_a"}],
            "libraries": [],
            "timeout_seconds": 3600
        },
        {
            "task_key": "handle_error",
            "depends_on": [
                {"task_key": "task_a"},
                {"task_key": "task_b"}
            ],
            "condition_task_state": "FAILED",
            "libraries": []
        }
    ]
}
&lt;/LI-CODE&gt;
&lt;UL&gt;
&lt;LI&gt;Implement Custom Error Logging: Write a Python script in handle_error that aggregates errors from upstream tasks for logging or notification.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 19:05:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-handle-timeout-exception-in-error-handle-task/m-p/101816#M40844</guid>
      <dc:creator>VZLA</dc:creator>
      <dc:date>2024-12-11T19:05:11Z</dc:date>
    </item>
  </channel>
</rss>

