cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Warehousing & Analytics
Engage in discussions on data warehousing, analytics, and BI solutions within the Databricks Community. Share insights, tips, and best practices for leveraging data for informed decision-making.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

1 min auto termination

Hubert-Dudek
Esteemed Contributor III

SQL warehouse can auto-terminate after 1 minute, not 5, as in UI. Just run a simple CLI command. Of course, with such a low auto termination, you lose the benefit of CACHE, but for some ad-hoc queries, it is the perfect setup when combined with serverless.

1min.png

1 REPLY 1

Ayushi_Suthar
Databricks Employee
Databricks Employee

Hi @Hubert-Dudek , Hope you are doing well! 

Could you please clarify more on your ask here? 

However, from the above details, the SQL warehouse mentioned is auto-terminating after 1 minute of inactivity because the Auto stop is set to 1 minute. However, you can change this config to the specified number of minutes. You can do this manually or from the Databricks API as well. 

Please refer to these documents for the same: 

UI: https://docs.databricks.com/en/compute/sql-warehouse/create.html#create-a-sql-warehouse

API : https://docs.databricks.com/api/workspace/warehouses/create

Please let me know if this helps and leave a like if this information is useful, followups are appreciated.
Kudos
Ayushi

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group