internalsGet Pro

Data Engineering · Module 14

Orchestration with Airflow

Lessons
10
Free
0
Reading
~3 h

Your progress

0 / 10 lessons done

Sign in to track

Lessons

  1. Orchestration: DAGs, tasks and dependenciesEvery data team runs dozens of steps a night that must happen in a set order. Whether a late or failed step costs one rerun or a wrong number in front of leadership depends on the dependencies you declare.13 min
  2. Airflow architecture: scheduler, workers and metadataWhen a night’s pipeline stalls, the first question is which part of Airflow stopped. Knowing what the scheduler, the workers and the metadata database each hold tells you where to look, what a restart loses, and what to run twice.17 min
  3. Writing Airflow DAGs: operators and sensorsMost nightly pipelines spend more time waiting for other teams’ data than doing work. How a task waits decides whether a late file is included, how many workers sit idle, and whether a wait ends in a clear state.16 min
  4. Schedules, catchup and data intervalsEvery scheduled pipeline has to know which hours or days of data it owns. When a run gets that wrong, it usually succeeds anyway, and the report it feeds is quietly empty or a day off.17 min
  5. Backfills: rerunning history safelyEvery bug fix, new table and outage ends with the same job: put the past right. Done carelessly, a rerun of history repeats the bug, burns a day of API quota or delays the morning report.17 min
  6. Retries, timeouts and deadline alerts in AirflowRetries that come too fast wake someone for an outage that would have passed. Retries that come too slowly, or never stop, make the report late. These settings decide which.17 min
  7. Passing data between tasksEvery pipeline hands something from one step to the next. Hand over the wrong thing and the orchestrator’s own database fills with your data, which slows every DAG on the deployment.15 min
  8. Assets and event-driven scheduling in AirflowA DAG that starts at a fixed hour trusts that another DAG finished first. When it hasn’t, the run succeeds on half the data and nobody hears. Assets let the data’s arrival start the work.17 min
  9. Dagster, Prefect and managed orchestratorsRunning an orchestrator costs hours that never show on a cloud bill. Renting one, or switching engines, costs money, a rewrite or a version step back. Knowing which cost you are trading saves a migration you didn’t need.15 min
  10. Design: orchestrating a daily reporting pipelineMost data teams own one DAG that a business reads every morning. Each Airflow setting can be right on its own and the report still be late, so the night has to be designed as a whole, backwards from the reader’s clock.28 min

Practise with

No tools or paper guides for this module yet.

Terms this module teaches 45

Open glossary

Airflow API server

The Airflow 3 process that serves the UI and REST API and receives state updates and heartbeats from running tasks.