Airflow 2's SLAs (sla= on tasks and sla_miss_callback) were removed in Airflow 3.0. Deadline Alerts, added in 3.1, replace them: a Dag declares when a run should be done, and if it is not, Airflow calls a callback. The run keeps going; the alert just tells someone.
from airflow.sdk import DAG, DeadlineAlert, DeadlineReference, AsyncCallback
deadline=DeadlineAlert(
reference=DeadlineReference.DAGRUN_QUEUED_AT,
interval=timedelta(minutes=30),
callback=AsyncCallback(chat.post, kwargs={"channel": "#oncall", "text": "{{ dag_run.dag_id }} is late"}),
)
The reference is where the clock starts: DAGRUN_QUEUED_AT (when the run was queued), DAGRUN_LOGICAL_DATE, or FIXED_DATETIME(...). The deadline is reference plus interval. AsyncCallback runs in the triggerer and SyncCallback on a worker; their kwargs are templates. Airflow marks the feature experimental, so its API may still change; Airflow 3.4 deprecates numeric intervals in favor of timedelta.
If a run is not done 30 minutes after it was queued, the on-call channel hears about it.