<?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 Setting 1-Minute SQL Warehouse Auto-termination via API in Databricks in MVP Articles</title>
    <link>https://community.databricks.com/t5/mvp-articles/setting-1-minute-sql-warehouse-auto-termination-via-api-in/m-p/149681#M99</link>
    <description>&lt;DIV class=""&gt;Hi everyone,&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;I wanted to share a quick technical tip for those looking to optimize their SQL Warehouse configurations, especially when dealing with intermittent ad hoc queries or &lt;SPAN class=""&gt;AI BI Dashboards&lt;/SPAN&gt;.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;The Challenge:&lt;/SPAN&gt; When setting up a SQL Warehouse, the Databricks UI currently enforces a minimum auto-termination limit of &lt;SPAN class=""&gt;5 minutes&lt;/SPAN&gt;. For scenarios where you only need to run 1–2 quick queries and then want the compute to spin down immediately, those extra 4 minutes of idle time can add up across multiple warehouses or workspaces.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="main (1).jpg" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/24482iF41C1CF76EE59904/image-size/large?v=v2&amp;amp;px=999" role="button" title="main (1).jpg" alt="main (1).jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;The Workaround:&lt;/SPAN&gt; While the UI has a 5-minute "hard" limit, the Databricks REST API provides&amp;nbsp;more granular control. You can actually set the auto_stop_mins parameter to &lt;SPAN class=""&gt;1 minute&lt;/SPAN&gt; by sending a request to the SQL Warehouses API.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;This is particularly useful for:&lt;/DIV&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Ad hoc tasks:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Reducing the "idle tail" after a developer finishes a session.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Dashboards:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Ensuring the warehouse shuts down quickly after a scheduled or manual refresh.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Resource Management:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Keeping your compute footprint as lean as possible without waiting for the UI-defined timeout.&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;I’ve put together a short guide on how to authenticate and execute this API call to bypass the UI restriction.&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Check out the full walkthrough here:&lt;/SPAN&gt;&amp;nbsp;&lt;A href="https://medium.com/@protmaks/databricks-sql-warehouse-auto-termination-1-minute-via-api-ebe85d775118" target="_blank" rel="noopener"&gt;https://medium.com/@protmaks/databricks-sql-warehouse-auto-termination-1-minute-via-api-ebe85d775118&lt;/A&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 03 Mar 2026 10:14:19 GMT</pubDate>
    <dc:creator>protmaks</dc:creator>
    <dc:date>2026-03-03T10:14:19Z</dc:date>
    <item>
      <title>Setting 1-Minute SQL Warehouse Auto-termination via API in Databricks</title>
      <link>https://community.databricks.com/t5/mvp-articles/setting-1-minute-sql-warehouse-auto-termination-via-api-in/m-p/149681#M99</link>
      <description>&lt;DIV class=""&gt;Hi everyone,&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;I wanted to share a quick technical tip for those looking to optimize their SQL Warehouse configurations, especially when dealing with intermittent ad hoc queries or &lt;SPAN class=""&gt;AI BI Dashboards&lt;/SPAN&gt;.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;The Challenge:&lt;/SPAN&gt; When setting up a SQL Warehouse, the Databricks UI currently enforces a minimum auto-termination limit of &lt;SPAN class=""&gt;5 minutes&lt;/SPAN&gt;. For scenarios where you only need to run 1–2 quick queries and then want the compute to spin down immediately, those extra 4 minutes of idle time can add up across multiple warehouses or workspaces.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="main (1).jpg" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/24482iF41C1CF76EE59904/image-size/large?v=v2&amp;amp;px=999" role="button" title="main (1).jpg" alt="main (1).jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;The Workaround:&lt;/SPAN&gt; While the UI has a 5-minute "hard" limit, the Databricks REST API provides&amp;nbsp;more granular control. You can actually set the auto_stop_mins parameter to &lt;SPAN class=""&gt;1 minute&lt;/SPAN&gt; by sending a request to the SQL Warehouses API.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;This is particularly useful for:&lt;/DIV&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Ad hoc tasks:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Reducing the "idle tail" after a developer finishes a session.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Dashboards:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Ensuring the warehouse shuts down quickly after a scheduled or manual refresh.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Resource Management:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Keeping your compute footprint as lean as possible without waiting for the UI-defined timeout.&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;I’ve put together a short guide on how to authenticate and execute this API call to bypass the UI restriction.&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Check out the full walkthrough here:&lt;/SPAN&gt;&amp;nbsp;&lt;A href="https://medium.com/@protmaks/databricks-sql-warehouse-auto-termination-1-minute-via-api-ebe85d775118" target="_blank" rel="noopener"&gt;https://medium.com/@protmaks/databricks-sql-warehouse-auto-termination-1-minute-via-api-ebe85d775118&lt;/A&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Mar 2026 10:14:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/mvp-articles/setting-1-minute-sql-warehouse-auto-termination-via-api-in/m-p/149681#M99</guid>
      <dc:creator>protmaks</dc:creator>
      <dc:date>2026-03-03T10:14:19Z</dc:date>
    </item>
  </channel>
</rss>

