cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Serverless Compute Idle Timeout Time

AJ270990
Contributor III

I want to know what is the idle timeout for Databricks Serverless Compute. Can anyone Databricks document where it specifies the idle timeout time details.

2 REPLIES 2

balajij8
Contributor

Hi @AJ270990 

Serverless notebooks have default execution timeout of 2.5 hours. There is no timeout for jobs running on serverless compute unless it is set.
Execution timeout details here

Idle Timeout details - Details given by @Ashwin_DSA here

Louis_Frolio
Databricks Employee
Databricks Employee

Hi @AJ270990 , I did some digging and I have some helpful tips to guide you.

This is one of those areas where the answer is โ€œit depends,โ€ based on which flavor of serverless compute youโ€™re using. Letโ€™s break it down so itโ€™s easy to reason about.

First, serverless SQL warehouses.

Here, โ€œidle timeoutโ€ is essentially governed by the Auto Stop setting on the warehouse. Think of Auto Stop as the mechanism that decides when to shut things down after activity stops.

What it means in practice: once the warehouse has been idle for the configured number of minutes, it will automatically stop. Until that happens, even if nothing is running, it can still accrue DBU and cloud costs โ€” so this setting matters more than people initially expect.

A couple of guardrails to keep in mind:

  • The default idle timeout is 10 minutes.

  • The minimum you can set in the UI is 5 minutes.

  • If youโ€™re creating warehouses via the API, you can push that as low as 1 minute.

If you want to dig deeper, the โ€œCreate a SQL warehouseโ€ documentation walks through the configuration options in detail (same structure across AWS, Azure, and GCP).

Now, serverless compute for notebooks and workflows โ€” slightly different story.

In this case, Databricks abstracts away the cluster lifecycle, so you donโ€™t get a direct โ€œidle timeoutโ€ knob for the REPL or session. In other words, youโ€™re not explicitly telling it when to shut down due to inactivity.

What you do have, though, is an execution timeout โ€” sometimes referred to as overspend protection.

By default:

  • Serverless notebooks have a 2.5-hour execution timeout for long-running queries.

If needed, you can tune this at the notebook level using the Spark config:

spark.databricks.execution.timeout

So the mental model is:

  • SQL warehouses โ†’ you control idle shutdown via Auto Stop.

  • Notebooks/workflows โ†’ Databricks manages idling, and you control max execution time instead.

Net takeaway: if your goal is cost control, Auto Stop is your lever for SQL warehouses, while execution timeout is your main safeguard on the notebook side.

Hope this helps, Louis.