Request a demo

Glossary · Pipelines and tooling

What is Apache Airflow?

Apache Airflow is an open-source orchestrator that schedules and monitors workflows defined as Python DAGs of tasks. On Google Cloud it runs as Managed Service for Apache Airflow, the service formerly called Cloud Composer, and drives BigQuery through Google provider operators.

Also called: Airflow, Cloud Composer, Managed Service for Apache Airflow, Managed Airflow, Composer

How Airflow works

A workflow is a DAG defined in a Python file: tasks (operators such as "run this BigQuery job" or sensors that wait for a file) and the dependencies between them. The scheduler creates a DAG run for each schedule interval, queues tasks whose upstream tasks succeeded, and workers execute them. Every run has a logical date, which templates such as {{ ds }} expose to tasks, so a run for 1 November processes 1 November's data even when it executes later.

Airflow started at Airbnb and is an Apache Software Foundation project. Airflow 3.0, released in April 2025, added scheduler-managed backfills started from the UI or API, DAG versioning and a new UI.

Airflow on Google Cloud

In April 2026 Google renamed Cloud Composer to Managed Service for Apache Airflow. Environments come in generations: Gen 3 (formerly Cloud Composer 3) supports Airflow 2 and Airflow 3; Gen 2 runs Airflow 2. DAG files go into the environment's Cloud Storage bucket, logs go to Cloud Logging, and the environment's cost is separate from the BigQuery jobs the DAGs start.

The Google provider package includes BigQueryInsertJobOperator, which submits any BigQuery job configuration, including labels for cost attribution:

from datetime import datetime

from airflow.sdk import DAG  # Airflow 2: from airflow import DAG
from airflow.providers.google.cloud.operators.bigquery import BigQueryInsertJobOperator

with DAG(
    dag_id="orders_daily",
    start_date=datetime(2026, 1, 1),
    schedule="0 6 * * *",
    catchup=False,
):
    build_daily_revenue = BigQueryInsertJobOperator(
        task_id="build_daily_revenue",
        location="US",
        configuration={
            "query": {
                "query": "CALL `my-project.marts.build_daily_revenue`(DATE '{{ ds }}')",
                "useLegacySql": False,
            },
            "labels": {"pipeline": "orders_daily", "team": "growth"},
        },
    )

The task passes the run's logical date into a stored procedure, so rerunning the task for a past date rebuilds that date and nothing else.

Cost and reliability notes

  • The environment runs all the time. Managed Airflow bills for the environment's resources whether DAGs run or not; consolidate small environments.
  • BigQuery does the work. Most of the cost of a BigQuery-heavy DAG is in the jobs it starts, so label them and attribute them per DAG and task.
  • Idempotent tasks. Retries and backfills rerun tasks; each task should produce the same result when run twice. See idempotent pipeline.
  • Catchup. With catchup=True, a new or unpaused DAG schedules every missed interval since start_date, which can launch a large burst of BigQuery jobs at once.

Common pitfalls

  • Top-level code in DAG files that calls APIs or queries BigQuery runs every time the file is parsed.
  • Using CURRENT_DATE() in SQL instead of the logical date breaks reruns.
  • Sensors that poke for hours hold worker slots; deferrable operators release them while waiting.

FAQ

Is Cloud Composer the same as Airflow?

Cloud Composer, renamed Managed Service for Apache Airflow in April 2026, is Google's managed environment for open-source Apache Airflow. It runs the Airflow scheduler, workers, web server and database for you, and you deploy DAG files to the environment's Cloud Storage bucket.

Does Managed Airflow support Airflow 3?

Yes. Managed Airflow (Gen 3), formerly Cloud Composer 3, supports Airflow 2 and Airflow 3, and Airflow 3 became generally available there in April 2026. Gen 2 environments run Airflow 2.

Should heavy data processing run inside Airflow tasks?

No. Use Airflow to orchestrate and let BigQuery, Dataflow or Spark do the processing. Pulling large result sets into worker memory is slow, fragile and costs you both the query and the worker time.

Read next

Browse the full glossary

Observability for every BigQuery table, in about 15 minutes

Masthead detects freshness, volume and schema anomalies, monitors pipeline errors and maps column-level lineage across all your projects, from logs and metadata only.