# Late and never-started Airflow DAG runs: SLAs, Deadline Alerts and the gap in between

> Airflow 3 removed SLAs. Deadline Alerts catch a late run Airflow actually created. A run the scheduler never starts still needs a check from outside Airflow.

Source: https://rowmonitor.com/guides/airflow-late-dag-runs · Updated 2026-11-26

In Airflow 2, an SLA was only checked when a DAG run finished, so a run that hung or never finished never raised an SLA miss. Airflow 3.0 removed SLAs. Airflow 3.1 added Deadline Alerts, which the docs still mark as experimental. A deadline is computed up front and the callback runs when it passes, whether or not the run has finished. Deadline Alerts still only exist for DAG runs Airflow actually creates. A paused DAG, or a scheduler that is not creating runs, needs a check from outside Airflow.

## Why the old SLA missed hung runs

The migration guide describes the old check this way: when a run finished, Airflow compared the time with logical_date + sla and called sla_miss_callback if it was late. If the Dag run never finishes, the SLA is never checked. In Airflow 3, sla_miss_callback is deprecated and does nothing beyond a log message and a UI notice.

## Deadline Alerts in Airflow 3.1+

A deadline is a reference plus an interval. When it passes, a callback runs. The scheduler looks for passed deadlines about every scheduler_heartbeat_sec, which defaults to 5 seconds. The docs mark this as experimental and subject to change.

- **DAGRUN_LOGICAL_DATE** starts from the scheduled time and can fire even if the run never began executing. It is the closest reference to the old SLA, but it fires at the deadline instead of waiting for the run to finish.
- **DAGRUN_QUEUED_AT** starts from when the run was queued. It catches a slow run or resource contention.
- **FIXED_DATETIME** is a wall-clock need-by time. A negative interval warns before it.
- **AVERAGE_RUNTIME** uses the average of recent successful runs plus the interval. There is no deadline if there is not enough history.

Callbacks are an AsyncCallback, which runs in the Triggerer, or a SyncCallback, which runs in the executor and was added in Airflow 3.2. Built-in notifiers such as SlackWebhookNotifier work. A DAG can take a list of DeadlineAlerts so you can warn and then escalate.

The example below is adapted from the Airflow documentation, using the 3.2+ import path. It was not executed on a local Airflow while this page was prepared. Do not treat it as a run we verified.

```python
from datetime import timedelta
from airflow.sdk import AsyncCallback, DAG, DeadlineAlert, DeadlineReference
from airflow.providers.slack.notifications.slack_webhook import SlackWebhookNotifier

with DAG(
    "nightly_orders",
    schedule="0 2 * * *",
    deadline=DeadlineAlert(
        reference=DeadlineReference.DAGRUN_LOGICAL_DATE,
        interval=timedelta(hours=1),
        callback=AsyncCallback(
            SlackWebhookNotifier,
            kwargs={"text": "Deadline missed for {{ dag_run.dag_id }} at {{ deadline.deadline_time }}"},
        ),
    ),
):
    ...
```

- Deadline Alerts are experimental and may change.
- The AsyncCallback import moved in Airflow 3.2. It previously lived at airflow.sdk.definitions.deadline.
- A custom async callback must be importable by the Triggerer, which needs a restart after the code changes.
- Jinja templating applies inside Notifiers only, not to plain callback kwargs.

## dagrun_timeout is not an alert

dagrun_timeout limits how long a run may run. On timeout, running tasks are marked skipped. Pair it with on_failure_callback if you want to hear about it. It does nothing for a run that is late to start.

## Failures that still raise no alert from inside Airflow

- The DAG is paused, or the scheduler is not creating runs. No run means no deadline is ever computed. This is an inference from the docs saying a deadline is calculated when a Dag run starts. It has not been verified on a local install.
- The run is on time and green, but it read stale upstream data. Gate on the data, for example a sensor on a partition or watermark, rather than on the clock.
- The deadline or the callback is misconfigured, for example a callback the Triggerer cannot import.

A practical check from outside Airflow is an expected schedule: nightly_orders should have succeeded by 03:00, and silence is the alert. Pair that with a freshness or row-count check on the output table.

rowmonitor-runcheck is a free, open-source script with no account. It checks the latest Airflow DAG run on Airflow 2.6+ or 3.x, and a dbt Core run_results.json. It does not read dbt Cloud. It posts to a Slack incoming webhook or a generic webhook. It does not keep run history, and it does not do late versus never-arrived detection, table checks, or a dashboard. It does not phone home. Install from PyPI: pip install rowmonitor-runcheck. Source: [rowmonitor-runcheck](https://github.com/kharipara/rowmonitor-runcheck). Commands are on the [Airflow page](https://rowmonitor.com/airflow#runcheck). Hosted Row Monitor is Free, Pro at US$39 a month, or Team at US$99 a month. The Airflow plugin is included in every plan. It is not a paid add-on. That script is a last-run check. It is not the schedule-based late or never-arrived detection described above.

## Where Row Monitor fits

Row Monitor already watches the tables you connect: freshness, row counts, and schema drift. A green Airflow run that wrote stale data can still show up there. That part is the product you can use today.

Row Monitor for Airflow is on the same workspace plan, not a separate product. The listener cannot see a run the scheduler never created, and it does not emit a never-started event. It pushes DAG and task run metadata and a heartbeat of unpaused DAG schedules. Row Monitor flags a missed run from that schedule, and a missing heartbeat when the scheduler goes quiet. Late runs are flagged within about 15 minutes. Table checks are separate and run once a day. Alert emails, Slack messages, and the times in the app use the workspace time zone. It starts as the browser's zone at signup. The owner can change it in Settings, and daylight saving is included. Airflow schedules are still evaluated the way Airflow defines them. The time zone does not change detection. Install steps are on the help page. The Deadline Alert example on this page was not executed.

## Expected runs that never start

Deadline Alerts only exist for runs Airflow creates. Row Monitor for Airflow sends run metadata and a heartbeat of unpaused schedules, so a run the scheduler never creates can be flagged from outside Airflow. The plugin does not emit a never-started event.

It is included in the workspace plan. Airflow checks run about every 15 minutes. Late runs are flagged within about 15 minutes. Table checks are separate and run once a day. Alert emails, Slack messages, and the times in the app use the workspace time zone. It starts as the browser's zone at signup. The owner can change it in Settings, and daylight saving is included. Airflow schedules are still evaluated the way Airflow defines them. The time zone does not change detection. Prices are in US dollars.

[Install the Airflow plugin](https://rowmonitor.com/help/airflow)

## FAQ

### Does Airflow 3 still support SLAs?

No. SLAs were removed in Airflow 3.0. sla_miss_callback is deprecated. Use Deadline Alerts in Airflow 3.1 and later.

### Are Deadline Alerts production-ready?

The Airflow docs mark Deadline Alerts as experimental and subject to change.

### Which reference matches the old SLA?

DeadlineReference.DAGRUN_LOGICAL_DATE is the closest. It fires when the deadline passes, instead of waiting for the run to finish.

### Will a Deadline Alert fire if the DAG is paused?

A paused DAG does not get a run, so there is nothing to attach a deadline to. That follows from the docs describing the deadline as calculated when a Dag run starts. It is inferred, and it has not been verified on a local install.

### Is dagrun_timeout an alert?

No. dagrun_timeout stops the run. Use on_failure_callback if you want to be notified. It does not cover a run that is late to start.
