AIP-31: Airflow functional DAG definition
summary
Airflow 2.0 implements a functional DAG API that makes message passing explicit by adding an explicit XComArg object (lazy reference resolved at runtime) and a @task decorator that turns Python callables into operators with automatic task ids and multiple outputs. Operators gain a dot.output property so XComs auto-declare dependencies and avoid manual ti.xcom pull/push and set_upstream calls. Master includes custom XCom backend hooks for alternative serialization; get_current_context is pending.
AI-written summary · about
chapters (22)
- 0:00Intro
- 0:30Agenda
- 2:47Data passing
- 4:56Vanilla Airflow
- 7:26Motivations
- 10:25Explicit SCOM
- 11:48Templated fields
- 13:42Python decorators
- 14:45App decorators
- 16:32Multiple outputs
- 18:14Future ideas
- 20:23Example
- 21:39Thanks
- 23:06Motivation
- 24:44Making it easier
- 26:41Custom classes
- 28:02Spark submit operator
- 28:37Task progress operator
- 30:38Example job
- 32:11Connecting functional DAGs and lineage
- 33:57How are people using Airflow
- 37:06Wrap up
