<?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 Shutdown Cluster in script if there is any failure in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/shutdown-cluster-in-script-if-there-is-any-failure/m-p/55673#M30403</link>
    <description>&lt;P&gt;I am working on incremental load from sql server to Delta lake tables stored in ADLS gen2. DUring the script i need to qrite a logic to&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Shut down the DB cluster on failure (there needs to be logging added to ensure that shutdown happens promptly to prevent guardrail violations).&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;What is the optimal way to achieve this?&lt;/P&gt;</description>
    <pubDate>Fri, 22 Dec 2023 17:16:35 GMT</pubDate>
    <dc:creator>sahesh1320</dc:creator>
    <dc:date>2023-12-22T17:16:35Z</dc:date>
    <item>
      <title>Shutdown Cluster in script if there is any failure</title>
      <link>https://community.databricks.com/t5/data-engineering/shutdown-cluster-in-script-if-there-is-any-failure/m-p/55673#M30403</link>
      <description>&lt;P&gt;I am working on incremental load from sql server to Delta lake tables stored in ADLS gen2. DUring the script i need to qrite a logic to&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Shut down the DB cluster on failure (there needs to be logging added to ensure that shutdown happens promptly to prevent guardrail violations).&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;What is the optimal way to achieve this?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 17:16:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/shutdown-cluster-in-script-if-there-is-any-failure/m-p/55673#M30403</guid>
      <dc:creator>sahesh1320</dc:creator>
      <dc:date>2023-12-22T17:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown Cluster in script if there is any failure</title>
      <link>https://community.databricks.com/t5/data-engineering/shutdown-cluster-in-script-if-there-is-any-failure/m-p/55677#M30406</link>
      <description>&lt;P&gt;If you run your notebook via workflow and error happen and there are no retires on job, then job cluster will be terminated immidietly after failure.&lt;/P&gt;&lt;P&gt;You can add python block of try catch and if error occurs , you catch the error and log somewhere before job will be terminated&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 19:00:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/shutdown-cluster-in-script-if-there-is-any-failure/m-p/55677#M30406</guid>
      <dc:creator>Wojciech_BUK</dc:creator>
      <dc:date>2023-12-22T19:00:28Z</dc:date>
    </item>
  </channel>
</rss>

