Build Daily

Tinley Park · November 9, 2026
platformApache Software Foundationapplied

Apache Airflow

Apache Airflow is an open-source batch workflow orchestrator. Workflows are Python DAGs. A scheduler queues their tasks on a timer or an event, and workers run them through an executor such as Celery or Kubernetes, with all state kept in a Postgres or MySQL metadata database. Apache 2.0 and free to self-host. The current line is Airflow 3 (3.3.2, September 2026); Airflow 2 reached end of life on 22 April 2026. It fits cron-shaped batch pipelines with dependencies, retries and backfills, and it does not fit streaming or request-time work.

Updated October 17, 2026

Apache Airflow schedules and runs batch workflows that are written as Python code. Each workflow is a DAG (directed acyclic graph) of tasks. Airflow runs the tasks in dependency order on a schedule, retries them when they fail, and records every run so that a failed step can be found, fixed and run again. This page covers what it is, how its parts fit and when it fits; the official docs at airflow.apache.org own the full reference.

What it is

A platform to author, schedule and monitor workflows. It is an Apache Software Foundation top-level project under the Apache 2.0 licence. It self-hosts on a single machine, on Docker, or on Kubernetes with the official Helm chart. Managed offerings (Astronomer, Google Cloud Composer, Amazon MWAA) run the same open-source core.

Release line. Airflow 3.0 shipped on 2025-04-22, and the current release is 3.3.2 (2026-09-17). The 3.3 line added asset partitioning, a state store for tasks and assets, pluggable retry policies and a Task SDK for Java and Go. Airflow 2 is end of life: its last line is 2.11 (2.11.2), limited maintenance began on 2025-10-22, and support ended on 2026-04-22. No more security or bug fixes ship for any 2.x release.

Airflow 3 changed the architecture, not only the API:

  • Workers no longer touch the metadata database. Tasks talk to the API server through the Execution API with short-lived credentials. Operators that open a database session directly fail.
  • The webserver became the API server (airflow api-server), which serves the REST API, the new UI and the Execution API.
  • The DAG processor is a separate, required process, even for local development.
  • A new authoring interface, airflow.sdk, replaces the old airflow.decorators and airflow.models imports for DAG code. Core operators such as BashOperator and PythonOperator moved to the apache-airflow-providers-standard package.
  • DAG bundles (a local folder or a versioned Git source) replace the single DAGS_FOLDER idea, so a task can run against the exact DAG version it was scheduled with.

Airflow is not a streaming engine, a message bus or a job queue for request-time work. It is a scheduler that knows about dependencies, retries, backfills, deferrable waits and failure callbacks.

How it works

The scheduler is the centre of every run. It reads parsed DAGs from the metadata database, decides which task instances are due, and hands them to an executor. With the Celery executor, the executor puts a command on a Celery broker (Redis or RabbitMQ); a Celery worker that listens on that queue takes the command and runs the task in a child process. In Airflow 2, the worker writes task state, XComs and logs metadata straight to the metadata database. Each worker must also have the DAG files on its own disk, because it imports the DAG file to build the task before it runs it.

That makes two separate flows: a DAG run that moves through the scheduler, broker and worker, and a DAG sync that puts the same DAG files in front of the DAG parser and the workers.

How an Airflow DAG runs and syncs on Celery

Step 1 of 5. At the schedule time the scheduler reads the serialized DAG, creates a DAG run and sets the first task instances to queued.

Airflow 2.10 with the Celery executor: one shared scheduler and metadata database, one worker per product queue.

The two flows meet in the metadata database. If the DAG files that the parser saw and the files on a worker differ, the scheduler can queue a task that the worker cannot build. Keeping both on the same commit is the main job of the sync path.

Components

Component Airflow 2.10 Airflow 3.x
Scheduler Required. Can also parse DAGs Required. Never parses DAGs
DAG processor Optional standalone (airflow dag-processor) Required, separate process
Webserver / API server airflow webserver (Flask UI + REST API) airflow api-server (REST API, UI, Execution API)
Triggerer Runs deferred tasks Runs deferred tasks
Workers Read and write the metadata DB directly Talk only to the Execution API
Metadata DB PostgreSQL 12–16, MySQL 8.0 PostgreSQL 14–18, MySQL 8.0 / 8.4

When to use it

Reach for it when:

  • The work is batch and schedule-shaped: hourly price refreshes, nightly scoring, daily exports.
  • Steps have dependencies and need retries, timeouts, backfills and a run history that an operator can inspect.
  • The team writes Python, and the pipeline code can share modules with the application.
  • Several products need one scheduler and one UI but must run their tasks in separate images with separate dependencies (Celery queues or the Kubernetes executor do this).

Skip it when:

  • The work is streaming or event-per-message. Use a stream processor or a queue consumer.
  • The job is one cron line. A Kubernetes CronJob or systemd timer has far fewer moving parts.
  • The workflow must start in milliseconds in response to a request. Airflow scheduling latency is seconds.
  • The pipeline is mostly container steps on Kubernetes with no need for Python DAG logic. Argo Workflows fits that shape natively.

At a glance

Core concepts

  • DAG — a Python file that defines tasks and their dependencies, plus a schedule.
  • Task / task instance — a unit of work, and one run of it for one DAG run.
  • Operator — a task template (PythonOperator, BashOperator, provider operators). The @task decorator wraps a Python function as a task.
  • Executor — how task instances run: Local, Celery, Kubernetes, or several at once (multiple executor configuration, Airflow 2.10+).
  • Queue — a Celery routing key. Every operator has a queue attribute; tasks without one go to [operators] default_queue.
  • XCom — small values passed between tasks, stored in the metadata DB.
  • Connection / Variable — stored credentials and settings, read by tasks at run time.
  • Asset (Dataset in Airflow 2) — a data dependency that can trigger a DAG when an upstream task updates it.

Requirements (current 3.3 line)

Item Value
Python 3.10, 3.11, 3.12, 3.13, 3.14
Metadata DB PostgreSQL 14–18, MySQL 8.0 / 8.4; SQLite for development only
Kubernetes (Helm chart) 1.30–1.35
Memory At least 4 GB recommended; depends on the deployment
Celery brokers Redis, Redis Sentinel, RabbitMQ
Upgrade path from 2.x Start from 2.7 or later; the latest 2.x first is recommended

Airflow 2.10 vs Airflow 3.3

Aspect Airflow 2.10 Airflow 3.3
Support End of life since 2026-04-22 Maintained
Python 3.8–3.12 3.10–3.14
Task access to state Direct metadata DB session Execution API through the API server
DAG imports airflow.decorators, airflow.models airflow.sdk
Core operators Bundled in core apache-airflow-providers-standard
DAG versioning None; latest file wins DAG bundles pin a version per run
UI Flask app builder UI New React UI

How to integrate

Install with the official Helm chart (Celery executor)

The chart (1.22 at the time of writing) installs the scheduler, webserver or API server, triggerer, Celery workers, a Redis broker and, if asked, a Postgres metadata database.

# values.yaml
executor: CeleryExecutor
airflowVersion: "3.3.2"
defaultAirflowTag: "3.3.2"

postgresql:
  enabled: false          # use an external Postgres
data:
  metadataSecretName: airflow-metadata   # key "connection": postgresql://user:pass@host:5432/airflow

dags:
  gitSync:
    enabled: true
    repo: https://github.com/example/pipelines.git
    branch: main
    subPath: dags
helm repo add apache-airflow https://airflow.apache.org
helm upgrade --install airflow apache-airflow/airflow \
  --namespace airflow --create-namespace -f values.yaml

Route tasks to a dedicated worker

Start a worker that listens on one queue, from an image that carries the code and dependencies for that queue:

airflow celery worker --queues paiddaily --concurrency 4

Then pin tasks to that queue:

from datetime import datetime
from airflow.sdk import dag, task   # Airflow 2.x: from airflow.decorators import dag, task

@dag(schedule="0 * * * *", start_date=datetime(2026, 1, 1), catchup=False,
     default_args={"queue": "paiddaily", "retries": 2})
def refresh_prices():
    @task
    def fetch():
        import httpx   # heavy imports inside the task, not at module level
        return httpx.get("https://api.example.com/prices").json()["updated"]

    @task
    def store(updated: str):
        print(f"prices updated at {updated}")

    store(fetch())

refresh_prices()

Check DAGs before an Airflow 3 upgrade

ruff check dags/ --select AIR301,AIR302          # breaking changes (Ruff 0.13.1+)
ruff check dags/ --select AIR301 --fix --unsafe-fixes
airflow config update                            # report config changes
airflow config update --fix
airflow db migrate                               # after a metadata DB backup

In the GL stack

Airflow runs as one shared installation on the prod cluster, in its own airflow namespace. It replaced the separate standalone Airflow that each product used to run, in October 2026.

  • Version. It runs Airflow 2.10.4, a December 2024 release. That is behind the current line in two steps: the last 2.x line is 2.11, and Airflow 2 as a whole reached end of life on 2026-04-22, so the installation receives no more security fixes. The move to Airflow 3 is open work, not done. It needs the DAGs checked against the AIR301/AIR302 rules, any task that reads the metadata database directly rewritten, and the DAG processor and API server added as separate components.
  • Shared core. One scheduler, one webserver, one triggerer and one metadata database serve every product, with the Celery executor. The metadata database is a Postgres of its own, kept apart from the product databases, and the Celery broker is a separate Redis, kept apart from the Redis that the applications use for caching and queues.
  • Per-product workers. Each product has its own Celery worker in its own namespace and its own image, and listens on its own queue: eightball (eightballsports.com), paiddaily (paiddaily.io), sagedaily (sagedaily.io) and platform for shared jobs. A product's dependencies never have to fit in another product's image, and a broken image stops only that product's tasks.
  • DAG source. DAG files sync from the main branch of each product repository, so a DAG change ships the same way as the product code it calls.

Gotchas

  • Every worker needs the DAG files. The Celery docs state that the worker must have access to its DAG folder and that syncing it is the operator's job. A worker that lacks a file fails the task at import time.
  • Configuration must match across the cluster. The docs require homogeneous Airflow settings on every node. With one image per product, the Airflow version, providers and airflow.cfg must match in every image, or a task can behave differently from how the scheduler parsed it.
  • A queue with no listener stalls silently. A task whose queue no worker consumes stays queued. Tasks with no queue go to default_queue, so either set a queue on every DAG or run a worker on the default queue.
  • Top-level code runs on every parse. The DAG parser imports each file again and again. Network calls or heavy imports at module level slow parsing for all products; put them inside the task function.
  • catchup defaults to on in Airflow 2. A new DAG with an old start_date creates a run for every missed interval. Set catchup=False unless backfill is the point.
  • XComs live in the metadata DB. Pass IDs and small values only; write large results to a table or object store.
  • Direct DB sessions break in Airflow 3. Code that uses settings.Session or provide_session inside a task stops working. The upgrade guide documents a PostgresHook workaround but warns it will break in 3.2 and later.
  • Do not expose the UI publicly. Keep it behind single sign-on or a private network; it can trigger runs and show connection metadata.

Risks

  • End-of-life version. Running 2.10 after 2026-04-22 means no upstream security fixes for core or the 2.x-only providers. The longer the stay, the larger the jump.
  • Shared core is a shared failure point. One scheduler and one metadata database serve every product. Scheduler downtime pauses all scheduled work, and a migration or bloat in the metadata DB affects everyone.
  • Upgrade effort is real. Airflow 3 changes imports, operator packages, the worker trust model and the component set. Large DAG estates need the Ruff rules and a test run before cut-over.
  • Python lock-in. DAGs are Python. The 3.3 Task SDK for Java and Go widens the task side, but the scheduling model stays Python-first.
  • Licence and governance. Apache 2.0 under the ASF, with a large contributor base, so vendor lock-in risk is low.

Alternatives

  • Argo Workflows — Kubernetes-native DAGs of containers in YAML. Pick it when every step is already a container image and Python DAG logic adds nothing.
  • Dagster — asset-centred orchestration in Python, with strong typing and local testing. Pick it for data-platform work where assets, not tasks, are the main unit.
  • Prefect — Python flows with a lighter deployment model. Pick it when the team wants plain decorated functions and less infrastructure.
  • Kubernetes CronJobs — one container on a schedule. Pick them when jobs have no dependencies between them and need no run history beyond pod logs.

Related