From Zero to Airflow: bootstrapping a ML platform
summary
Bluevine migrates hundreds of cron scripts into Airflow, running Celery+Redis executor with Postgres metadata and EC2 workers, keeping ML code separate from the scheduler environment. Onboarding uses sensors and XCom to pass single-client state and a trigger DagOperator to avoid many idle DAGs. Performance fixes include patched scheduler queries (one SQL per DAG instead of per-task) and a split streaming and batch Airflow stacks, yielding ~30% lower 90th‑percentile scheduler delay, 20% lower DB CPU, under 3s schedule latency and sub-30‑minute end-to-end runs.
AI-written summary · about
