Apache Airflow

Scheduler Lag Indicates Resource Exhaustion

critical
Resource ContentionUpdated Jan 24, 2026

Execution dates lag far behind current time, indicating scheduler cannot keep up with DAG parsing and task scheduling load, leading to delayed pipeline runs and stale data.

How to detect:

Monitor the delta between execution_date and current time for recently scheduled tasks. Alert if lag exceeds acceptable threshold (e.g., >1 hour for hourly DAGs). Check scheduler_heartbeat and parsing_processes metrics.

Recommended action:

Increase scheduler.parsing_processes to parallelize DAG parsing; reduce min_file_process_interval and dag_dir_list_interval; optimize DAG code to reduce import overhead; scale scheduler horizontally if possible; clean old metadata with 'airflow db clean'.