Modernize a decade old pipeline with Airflow 2.0
summary
Scribd migrates a 1,400-task DAG to Databricks on AWS and Airflow 2.0, and shows the concrete code and operations that make it safe: a custom trigger-rule change that overrides get_state count_upstream_tis to treat migration tasks as harmless, plus a later fix to let upstream-failed propagate; a patched serialization layer so custom trigger rules survive DAG JSON serialization; a nonrollback MySQL 5.6→5.7 DB snapshot/restore to enable Airflow 2 scheduler features; an ECS-spawned backfill container UI that avoids scheduler load; tuned concurrency and availability-zone spot-price switching for 10–20% cost savings.
AI-written summary · about
chapters (17)
- 0:00Introduction to migration
- 1:11Legacy pipeline context
- 2:13Gradual migration strategy
- 3:37Custom trigger rules fix
- 5:02Preventing long-running tasks
- 6:48Handling data sync failures
- 8:35Airflow 2.0 upgrade process
- 10:44MySQL 5.7 compatibility issues
- 12:33Scheduler limitations in MySQL
- 13:15Custom trigger rules serialization
- 14:39Performance improvements in 2.0
- 16:49Running large backfills at scale
- 19:41Optimizing concurrency limits
- 20:02Self-service backfill UI plugin
- 21:48Backfill UI plugin architecture
- 24:58Bugs in backfill functionality
- 27:04Databricks cost optimization
