Automate Databricks
Get a morning list of failed job runs, catch jobs that are taking far too long, and watch DBU spend from your billing system tables. ClickRuntime calls your workspace's REST API and runs SQL on a SQL warehouse you choose. Describe what you want to your AI assistant, check what it will do, and it keeps running.
Try asking
Create a ClickRuntime automation: every day at 7am, list the Databricks job runs from the last 24 hours that failed and email me the job names, error states and links.
Paste it into your assistant. It tells you what it will send or change before it runs live.
Ideas
What you can automate in Databricks
Get a morning email of failed Databricks jobs
Each morning one email lists every job run that failed overnight, with links to each.
See how it worksGet an alert when daily DBU spend goes over budget
If yesterday's DBU usage passed your budget, you know first thing in the morning.
See how it worksGet a Slack alert when a job runs too long
Any run still going after two hours is flagged in Slack once, so stuck jobs don't burn compute all night.
See how it works Your own logicAny other automation you can describe in words
Your own rules, schedule and AI steps with Databricks, plus any other app. Describe it and your assistant builds it.
See how to build your ownBuild your own
Build any Databricks automation you can describe
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
For example, ask your assistant
Every morning, list Databricks job runs that failed overnight or took more than twice their usual duration, with the error message for each.
Every 15 minutes, check my Databricks jobs and post any failed run to Slack with the job name, the failing task and a link to the run.
When a production Databricks job fails, open a Jira issue with the error details, post it in Slack, and close the issue automatically when the next run succeeds.
Beyond chat
Have Databricks work when you're not in the chat
On a schedule
Get a morning email of failed Databricks jobsDaily
Watches for changes
Get a Slack alert when a job runs too longOn a schedule
On a schedule
Get an alert when daily DBU spend goes over budgetDaily
Setup
Connect Databricks
Databricks connects with a personal access token from your workspace, plus your workspace URL. A service principal with its own OAuth secret is the alternative Databricks recommends.
Databricks
Data / Lakehouse
- In your Databricks workspace, click your username in the top bar and open Settings, then Developer.
- Next to Access tokens, choose Manage, then Generate new token. Set a name, lifetime and scopes.
- Copy the token (it starts with
dapi); Databricks shows it only once. - In the ClickRuntime dashboard, open Connections & secrets and save the token and your workspace URL as a Databricks secret.
Good to know
Databricks limits that affect automations
- Workspace admins can turn off personal access tokens or cap how long they last. If you can't create one, ask your admin or use a service principal.
- A token that isn't used for 90 days is revoked automatically, so a rarely run automation may need a new token.
- Cost alerts query
system.billing.usage, so they need a SQL warehouse ID and read access to system tables.
FAQ
Questions about automating Databricks
What can ClickRuntime see in my Databricks workspace?
Databricks already emails on job failure. Why use this?
Do I need a SQL warehouse?
How quickly will I hear about a long-running job?
Do I need AI for Databricks automations?
Is this a Databricks connector for ChatGPT or Claude?
Related pages
Keep exploring