Start here
You write a DAG file once, and it runs every day. But each run needs its own values, such as which day to read.
Those values come from two places:
| Source | What it holds | Example |
|---|---|---|
| The template context | What Airflow knows about this run. | The data interval of the run. |
| XComs | Small values that other tasks left during this run. | The path of the file that load_orders wrote. |
This chapter shows both, and the mistakes that make a run look green while it does the wrong thing.
