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

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now