Debugging Airflow Pipelines
SkillProductivityDiagnose failing or stuck Apache Airflow pipelines, task failures and retries, scheduler/executor problems, XCom errors, zombie/queued tasks, dependency deadlocks, and pools/concurrency limits. Use when an Airflow task fails or is stuck queued, the scheduler is not running tasks, a DAG will not trigger, or tasks become zombies.
Use Debugging Airflow Pipelines in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Debugging Airflow Pipelines and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the Debugging Airflow Pipelines skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; Ahel provides instructions and does not run this skill.
No other account needed.
Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
What this skill tells your AI
The instructions your AI receives, as published by unknown-333/awesome-data-engineering-skills in skills/debugging-airflow-pipelines/SKILL.md and read by Ahel’s review.
When to use
- A task failed, is stuck in
queued/scheduled, or became a zombie. - The scheduler isn't launching runs, or a DAG won't trigger.
- XCom pull errors, dependency deadlocks, or pool/concurrency starvation.
- Do NOT use for writing new DAGs (use
authoring-airflow-dags).
Workflow
- [ ] Read the task log first (Grid view -> task -> Logs)
- [ ] Check task state and why: failed, up_for_retry, queued, or none
- [ ] Localize: task-level bug vs scheduler/executor vs resource limit
- [ ] Fix root cause, then clear the task to re-run
- Read the task log. The Grid/Graph view → failed task → Logs shows the real exception nearly every time.
- Check the state and reason.
queuedfor a long time is usually a resource/executor issue, not a code bug. - Localize using the table below.
- Re-run by clearing the task instance (and downstream if needed) rather than re-triggering the whole DAG.
Patterns
Task keeps failing — read the log; fix the exception; confirm retries are
set so transient errors self-heal. Use on_failure_callback for alerting.
Task stuck in queued/scheduled:
- Worker capacity exhausted, or a
poolis full → check pool slots andmax_active_tasks/parallelism. - Celery/Kubernetes executor not picking up → check worker health and the message broker/queue.
Zombie tasks (process died, heartbeat lost) → often OOM or a killed worker. Check worker memory/logs; reduce task memory or raise limits; Airflow marks it failed and retries.
Scheduler not creating runs:
- DAG parse error →
airflow dags list-import-errors(top-level code exceptions). - DAG paused, or
start_datein the future, orcatchup=Falsewith no new interval yet. max_active_runsreached → older runs not completing block new ones.
Dependency deadlock / "no status" — an upstream is skipped with the default
trigger rule; adjust trigger_rule (e.g. all_done, none_failed_min_one_success)
for branch/cleanup tasks.
XCom errors — pulling a key a task never pushed, or a payload too large for the metadata DB. Push explicitly and pass storage references for big data.
Common pitfalls
- Re-triggering the whole DAG instead of clearing the failed task — reruns work already done and can duplicate non-idempotent side effects.
- Blaming code for
queuedtasks — check pools, parallelism, and workers first. - Ignoring import errors — one bad DAG file can stall parsing/scheduling.
- No retries on flaky external calls — every transient blip pages someone.
- Clearing a non-idempotent task — confirm the task is safe to re-run, or you
duplicate data (see
writing-idempotent-transformations).
Signals
- GitHub stars
- 21
- Last commit
- Aug 2026
Advanced
- Item type
- skill
- Key
debugging-airflow-pipelines- Source
- github.com/unknown-333/awesome-data-engineering-skills
github.com/unknown-333/awesome-data-engineering-skills
More in Productivity
Skill · coreyhaines31
More in Productivitygws-calendar
Skill · googleworkspace
More in Productivitylark-minutes
Skill · larksuite
More in Productivitylark-workflow-standup-report
Skill · larksuite
More in Productivityenergy-procurement
Skill · affaan-m
More in Productivityhomelab-pihole-dns
Skill · affaan-m
More in Productivity