🗓️Task Dependency
Also known as Upstream Task, Downstream Task, Pipeline Dependency
A rule that one task must finish before the next one starts.
Think of it like
You put on socks before shoes. The shoes have to wait for the socks.
Example
A report task depends on two load tasks. The loads run side by side, and the report starts only when both are done.
Why it matters
Links between tasks stop a report from reading half-loaded data. They also show which tasks can run side by side.
Definition
Example code
python
extract_orders >> join_tables
extract_payments >> join_tables
join_tables >> build_reportCommon mistake
Key takeaways
- 1Upstream first. The waiting task needs its inputs done.
- 2No loops. A task can never wait on itself.
- 3Parallel by default. Unlinked tasks run at the same time.