Airflow Datasets and Pub/Sub for Dynamic DAG Triggering - Airflow Summit 2024
summary
Shows a working setup that triggers DAGs on data arrival using Airflow Datasets and Google Pub/Sub and stores rows in BigQuery. Two ingestion DAGs (EU and US) update their datasets and a downstream consolidation DAG requires 2 of 2 dataset updates before running. Pub/Sub subscription polls every ~30s via the sensor, consolidation sends a message, the consumer DAG pulls one message and self-triggers with trigger_dag_run to keep listening. Demo includes currency conversion for US rows and mentions dbt in the pipeline.
AI-written summary · about
