cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Job scheduled run fail alert

alexgavrysh
New Contributor

Hello,

I have a job that should run every six hours. I need to set up an alert for the case if this doesn't start (for example, someone paused it). How do I configure such an alert using Databricks native alerts?

Theoretically, this may be done using system tables and SQL Alerts. But the problem is that:

Currently no support for real-time monitoring. Data is updated throughout the day. If you donโ€™t see a log for a recent event, check back later. link

1 REPLY 1

VZLA
Databricks Employee
Databricks Employee

Thank you for your question! Hereโ€™s a concise workflow to set up an alert for missed job runs in Databricks:

  1. Write a Query: Use system tables to identify jobs that havenโ€™t started on time.
  2. Save the Query: Save this query in Databricks SQL as a named query.
  3. Create an Alert:
    1. Go to Alerts in Databricks SQL.
    2. Create a new alert based on the saved query.
    3. Set the condition to trigger when the query returns rows.
    4. Set Notifications: Add email, Slack, or PagerDuty notifications for the alert.
  4. Schedule the Query: Set the query to run every 5-10 minutes to check for missed runs.

This will alert you when the job hasnโ€™t run as expected. Let me know if you need clarification!

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