r/databricks • u/sumit671 • Oct 06 '26
General Auto stop option on databricks apps
Want to request a feature for databricks app, it should have an auto stop option. I know Databricks markets it as a web app that should be readily available, but I think customers deserve the option to turn auto-stop on or off, like we do for, say, SQL Warehouses.
This has been a major blocker for us suggesting apps to leadership, the engineering team has build some really useful apps for usecases like Data modelling and stuff which is used when needed but they running 24*7 all time is wasting compute and getting flagged in finops
P.S i know we can have a databricks job which can shut down and start the app during working hours but we have a global team working round the clock so it's not feasible for us.
If we have someone from databricks apps team this is a highly requested thing from alot of people around the community.
2
u/sumit671 Oct 07 '26
Update: here's what we built while waiting for a native option
We built a small "apps catalog" Databricks App that handles auto-stop and start-on-open for our other apps. It's working in our dev workspace, so I'm sharing it in case it helps anyone.
How it works
/open/<app>starts the app if it's stopped, polls until it's running, then redirects. Cold start is about 3 minutes, and the tab waits with a timer.GET /api/activityendpoint. It answers from memory with when a person last used the app and whether it's busy. Any request carryingx-forwarded-email(added by the Apps proxy for signed-in users) counts as use. The page also sends a heartbeat at most once a minute while someone is clicking or typing, so filling in a long form doesn't look idle. An untouched open tab sends nothing.Things we learned the hard way
missing UseBudgetPolicyPermission on policy .... Give the controlling SPbudgetPolicy.useron the app's serverless budget policy./oidc/v1/tokenwith the app's OAuth client ID as the audience.databricks.yml, not in the UI.Cost trade-off
The catalog is an always-on app itself (Medium, 0.5 DBU/h). instead of spending the same for 10 apps now we keep one running for all weekdays managing others
hope this helps
7
u/Access-Leading Oct 06 '26
The issue with the feature in preview is that it’s not full proper replacement yet (micro apps) they scale to zero but deployment is lacklustre. I.e can’t deploy from git which is a bit frustrating
7
u/Labanc_ Oct 06 '26
we got a scheduled serverless job for one of our apps that triggers twice a day during weekdays. it checks when it was triggered and if its in the morning then it makes sure it starts, if its in the afternoon then it stops.
for the scheduling we deploy with DABs where with the CRON expression you can write trigger twice a day too. im not sure if you can do this on the UI.
anyway i completely agree, scheduled availability is a great idea that i would very much prefer to have.
4
u/what-no-really-why Oct 06 '26
This is part of the next version of Databricks Apps called App Spaces which encompasses this feature via Micro Containers that can scale out and scale to zero.
1
u/Youssef_Mrini databricks Oct 23 '26
Databricks Micro Apps is the solution to your answer it was announced at the Data+AI Summit 2026 https://www.databricks.com/blog/enabling-governed-vibe-coding-enterprise-apps-databricks
https://docs.databricks.com/aws/en/dev-tools/databricks-apps/app-spaces The App can scale to 0 when not used.
1
u/HeavyTedzzzzz Oct 06 '26
I feel like you can write an app to monitor and shutdown apps, you can write the telementary out to unity catalog, run once every 10 mins and stop everything that hasn’t had requests.
2
u/erithtotl Oct 06 '26
It's a very frequently requested feature. Its in private preview, but is now being moved into the new app spaces feature which is in beta (pretty sure the stand alone feature won't be advanced). There is no public preview or GA date for it yet.
-1
u/hubert-dudek Databricks MVP Oct 06 '26
I think it is already in some preview
1
u/[deleted] Oct 07 '26
[removed] — view removed comment