Apache Airflow major version upgrade: why Airflow 2 is past end of life
A production Airflow 2 estate gets no fixes after April 22, 2026, so moving to Airflow 3 is a deadline-driven project, and it changes more than the installed package. The move to Airflow 3 changes your DAG code, your operators and your metadata database as well as the package you install. The dates are firm: Airflow 2's last patch is 2.11.2, the line entered limited maintenance on October 22, 2025, and it reached end of life on April 22, 2026. Airflow 3 was first released on April 22, 2025. Limited maintenance means only security and critical bug fixes, and end of life means no fixes or support at all, so every month on Airflow 2 after that date runs without project patches.
The Airflow documentation does not agree on the newest Airflow 3 patch. The version support table names 3.3.2 as the current patch release, while the version life cycle page lists 3.4.0 in Maintenance state as of December 2026. Do not treat either figure as settled. Before you choose a target, confirm the current release on the Airflow supported versions page and in your own package index, then record the exact version and the date you checked. Pin that version in your test environment, because the target you choose determines the prerequisites you must meet, from Python and database versions to Kubernetes.
Decide now whether each Airflow 2 deployment will be upgraded, replaced or kept running without fixes, and record that choice with a named owner and a date. Keeping a deployment on Airflow 2 after April 22, 2026 means accepting that no project patch will arrive for it, so ask your security team to log that exposure in the risk register and review it on a set schedule. If a managed service runs your Airflow, check its notice for the versions it offers, because the provider sets its own support dates and they may differ from the open-source dates in this section.
Which Airflow versions are supported and when support ended
This table lists the Apache Airflow release lines in the official version support table, with the current patch, status and key date for each. Read the status column against the support policy: limited maintenance receives security and critical bug fixes only, while end-of-life versions receive no fixes or support. The main takeaway is that Airflow 2 stopped receiving fixes on April 22, 2026, so any Airflow 2 estate now runs without project patches and should be planned for upgrade.
| Version line | Current patch | Status | Key date |
|---|---|---|---|
| Airflow 3 (version support table) | 3.3.2, the current patch release listed in the version support table | Current line, so new deployments and upgrades should target it | First released April 22, 2025 |
| Airflow 3 (life cycle page) | 3.4.0, listed on the life cycle page | Maintenance as of December 2026, so confirm with the Airflow documentation which patch is newest before you pin a version | Listed as of December 2026 |
| Airflow 2 (limited maintenance) | 2.11.2, the last patch release in the 2.x line | Limited maintenance: security and critical bug fixes only, so routine fixes stop arriving | Limited maintenance from October 22, 2025 |
| Airflow 2 (end of life) | 2.11.2, with no patches after end of life | End of life: no fixes or support from the project, so any remaining issues stay open | End of life April 22, 2026 |
What the Airflow 3 line requires from your platform before you start
Before you start, confirm that your platform meets the Airflow 3.3.2 prerequisites: Python 3.10 to 3.14, PostgreSQL 14 to 18, MySQL 8.0, 8.4 or an Innovation release as the metadata database, and Kubernetes 1.30 to 1.35 if the scheduler and workers run on a cluster. Treat each item as a gate. The upgrade applies schema changes to the metadata database with airflow db migrate, so an engine or version outside the list is a blocker that must be fixed first. Compare these figures against what your base images, database service and cluster run today. A cluster on an older Kubernetes version or a PostgreSQL 13 instance needs its own upgrade, change window and owner before the Airflow work can begin.
MariaDB is not supported as a metadata database. If your Airflow 2 estate runs on MariaDB, plan the move to a supported engine as a separate step before the major version upgrade, because changing the database engine and the Airflow version in one window multiplies what can fail. Do not use SQLite in production, so check that no environment, including shared staging, depends on it. The prerequisites also recommend at least 4 GB of RAM. Treat that as a minimum to confirm against your own DAG count, scheduler load and concurrency settings, not as a sizing result. Keep a tested backup of the metadata database so you can restore it if you need to roll back.
Check Python for your code, not only for Airflow. List the Python version that each DAG dependency and custom operator needs, including pinned provider packages. Any custom operator or hook that imports a library dropping one of the interpreters in the 3.10 to 3.14 range blocks the upgrade until it is fixed or replaced. Then check the Airflow prerequisites page for the exact release you target. These figures belong to 3.3.2, and the version life cycle page already lists 3.4.0 as a later Airflow 3 line, so its requirements may differ. Ask your platform team to confirm the same figures for the managed service or base image you build from.
How the Apache Airflow major version upgrade runs, step by step
This sequence moves an Apache Airflow 2 deployment to Airflow 3 using the steps the upgrade guide documents, starting from the latest 2.x release and ending with a migrated metadata database and DAGs that pass the guide's checks. Airflow 2 reached end of life on April 22, 2026, so the work begins by leaving an unsupported line. The backup taken in the second step is the rollback point.
Confirm the starting version and read the guide
Before any change, confirm the deployment runs Airflow 2.7 or later, ideally the latest 2.x release. The last listed 2.x patch is 2.11.2, and Airflow 2 reached end of life on April 22, 2026, so this upgrade moves the estate off an unsupported line. Read every command, flag and check in the upgrade guide in full before any production run, and confirm which components the guide says to stop during the migration. The check that closes this step is a written record of the current version, the target release, and the platform owner's sign-off on the plan.
Back up the metadata database
Take a full backup of the Airflow metadata database before running any upgrade command. The database team usually owns this step, and the backup must be restorable, so test a restore in a non-production copy if your process allows it. This backup is the rollback point for the whole sequence: if the clean or migrate steps fail, or the upgraded instance misbehaves, restoring it returns the database to its 2.x state. Confirm with your platform team that the previous Airflow 2.x packages or images are still available, since the database restore alone does not revert the software. The check that closes this step is a verified backup file with a recorded timestamp and a successful test restore.
Run airflow db clean
Run
airflow db cleanagainst the backed-up database, choosing the flags the guide describes for your retention needs. The command clears old entries from the metadata database. Your data and operations leads decide how much history to keep, and that decision should be written down before the command runs. If the guide describes a dry-run or preview option, use it first and keep the output. The check that closes this step is a reviewed record of what the command removed, plus a database that still passes a basic connection test from the Airflow components.Run airflow db migrate
Run
airflow db migratefrom the upgraded Airflow environment to move the metadata database schema to the Airflow 3 structure. Use the configuration and flags the guide specifies, and save the full command output for the change record. Check the guide for the order in which schedulers, workers and API servers should be stopped and started around the migration. The check that closes this step is a migration log that finishes without errors, followed by the status check the guide describes, which should report the expected Airflow 3 release.Lint DAGs with Ruff and AIR rules
Run Ruff 0.13.1 or later with the AIR rules against every DAG file in the repository. The upgrade guide recommends this check to flag Airflow 3 breaking changes in DAG code, including SubDAGs, SequentialExecutor and SLAs, which Airflow 3 removes. Developers fix each finding in the DAG code and rerun the linter until the findings are cleared or documented as accepted. The check that closes this step is a clean Ruff run over the DAG folder with no open AIR findings, recorded in the change ticket.
Move operators to the standard provider
Move operators such as BashOperator to the apache-airflow-providers-standard package, which the guide says these operators moved to in Airflow 3. Install the package in the target environment, then update the import paths in each DAG that uses a moved operator. Use the lint results from the previous step to find those files, and confirm the complete list of moved operators in the guide rather than relying on this example list. The check that closes this step is a DAG parse run in the target environment with no import errors, and a Ruff run that is still clean.
Which Airflow 3 breaking changes hit existing DAGs and integrations
Airflow 3 removes or changes behavior that existing DAGs, scripts and integrations may depend on. The six changes below come from the upgrade guide, and each one touches a different part of your estate: DAG structure, executor settings, alerting, API callers, task code and provider imports. Start by running Ruff 0.13.1 or later with its AIR rules, then check each card against your own repositories and deployment.
SubDAGs, SequentialExecutor and SLAs removed
Three features that many Airflow 2 estates still use are gone in Airflow 3: SubDAGs, the SequentialExecutor and SLAs. SubDAGs affect how DAGs are structured, the SequentialExecutor affects executor configuration in local and test environments, and SLAs affect the alerting your on-call team may rely on. Check first: search your DAG folder and airflow.cfg for SubDAG operators, SequentialExecutor and sla arguments, then confirm the replacement alerting path with your operations team before cutover.
REST API moves to /api/v2
The REST API moves from /api/v1 to /api/v2, so the endpoints your scripts call are no longer the same. The change touches scripts, CI jobs, monitoring tools and any external system that triggers DAG runs or reads task state through the API. Check first: inventory every client that calls the API, including service accounts and dashboards, and test each call against a v2 endpoint in a staging instance before you redirect production traffic.
execution_date context variables removed
Templates and task code that read execution_date style context variables no longer work as they did in Airflow 2. The change lands in Jinja templates, Python callables and helper functions that read the task context, so a DAG can parse cleanly and still fail at run time. Check first: search templates and Python tasks for execution_date and related names, replace them with the variables the upgrade guide lists, and run each affected DAG in a test environment.
catchup_by_default now defaults to False
The default for catchup_by_default changes to False, so a DAG that does not set catchup explicitly will no longer fill in missed intervals when it is unpaused. This changes scheduling expectations and any backfill plan that assumed Airflow would run historical intervals automatically. Check first: list DAGs that depend on the default, then decide for each one whether to set catchup in code or run its backfills by hand.
Tasks lose direct metadata database access
Tasks can no longer open the Airflow metadata database directly. Any task that queries Airflow tables, such as DAG run or task instance records, whether through a hook, a raw SQL connection or a shared helper module, has to change how it gets that information. Check first: search task code for connections to the metadata database and for queries against Airflow's own tables, then decide which values should come from the API, a task argument or a store you control.
Operators move to the standard provider
Operators such as BashOperator move to the apache-airflow-providers-standard package, so existing import paths and provider installs need updating. The change affects every DAG that imports these operators and every image or requirements file that pins providers. Check first: list the operators your DAGs import, confirm which ones move under the upgrade guide, and add the package to your build before running airflow db migrate in a test environment.
How the upgrade sequence and rollback point fit together
The diagram starts from an Airflow 2 estate on the latest 2.x line, which the upgrade guide recommends, with at least 2.7 as the minimum. Linting and fixing DAGs comes first, then the metadata database is backed up. That backup is the rollback point. Next come airflow db clean and airflow db migrate, followed by testing in staging before cutover. The supplied upgrade guide does not document a downgrade procedure, so rollback is shown as a restore from the backup. Designing that restore plan, and testing it in your own environment before you rely on it, is your responsibility.
Upgrade sequence with the metadata database backup marked as the rollback point.
How to prepare backups, staging and rollback by environment
On VMs or bare hosts, you own the scheduler, API server, DAG processor, metadata database, backups and the restore path, so no part of the upgrade happens without your team's plan. Preparation starts with a restore you have tested, because a backup you have never restored gives you no rollback. The Airflow 3 upgrade guide sets the baseline steps for moving from Airflow 2.
- Backups: Dump the metadata database before any change, and store the dump with the Airflow version, the
airflow.cfgfile and the virtual environment's package list. Restore it to a scratch host at least once so you know how long the restore takes inside your window. - Staging: Restore a copy of production into a staging host on the same database engine, then run
airflow db cleanandairflow db migratethere first. Point staging at test copies of external systems so a failed task cannot write to production data. - Plugin and provider inventory: Export every installed provider package and plugin with its pinned version, and check each against the target release. Note that BashOperator moved to the
apache-airflow-providers-standardpackage, so DAGs that import it need that package installed. - Database engine: For Airflow 3.3.2, confirm the metadata database runs on PostgreSQL 14 to 18 or MySQL 8.0 or 8.4. MariaDB is unsupported as a metadata database, and SQLite should not run in production.
- Rollback: Pair each database backup with the previous virtual environment, so you can reinstall the old packages and restore the data in one window. Confirm in the release notes whether any schema change can be reversed before you depend on a downgrade.
Check that your restore test used the same database engine version, and that Ruff 0.13.1 or later with the AIR rules passes across your DAG folder before you book the window.
On Kubernetes, you own the Helm release or manifests, the metadata database and the cluster version. The Airflow 3.3.2 prerequisites list Kubernetes 1.30 to 1.35, so confirm the cluster sits inside that range before you change Airflow, and treat any cluster upgrade as a separate change with its own rollback.
- Cluster version: Record the control plane and node pool versions, confirm they fall within Kubernetes 1.30 to 1.35, and schedule any cluster move in its own window ahead of the Airflow change.
- Backups: Back up the metadata database with the engine's native tooling, and snapshot any persistent volumes that hold logs or bundled DAGs. Keep the Helm values file and image tags in version control so the previous release can be reinstalled exactly.
- Staging: Deploy the target release into a separate namespace against a copy of the database, using the same images, executor and secrets layout as production. Run the database migration as one controlled job before the new scheduler and API server pods start.
- Plugin and provider inventory: List the packages baked into your custom image and any installed at container start. Packages installed at startup depend on package indexes at deploy time, so pin them in the image and record the versions.
- Rollback: Keep the previous image tag and Helm revision. A Helm rollback restores workload manifests, but it does not reverse database migrations, so the database restore is the step that makes rollback safe.
Check that a restore was tested against the same Helm revision, image tags and cluster version you plan to run in production.
With Amazon MWAA, Google Cloud Composer or Azure Data Factory Workflow Orchestration Manager, the provider decides which Airflow versions appear and when upgrades reach your environment. Your preparation shifts to inventory, testing on the versions offered and holding the provider to a written window. Confirm with each provider which Airflow versions and upgrade windows apply to your environment before you book any work.
- Version availability: For Azure Data Factory Workflow Orchestration Manager, Microsoft says new Airflow instances can no longer be created from January 1, 2026, and recommends migrating to Apache Airflow jobs in Microsoft Fabric. Existing instances therefore need a dated migration plan. See Workflow Orchestration Manager for Microsoft's current guidance.
- Backups: Ask what the service backs up, how you export DAGs and metadata, and who performs a restore. Keep DAG code in your own version control so the code survives an environment failure.
- Staging: Use a second environment, where the provider allows one, running the target Airflow version with a copy of your DAGs and connections. Run your test suite there before the provider's upgrade window opens.
- Plugin and provider inventory: Export the requirements and plugin list from each environment, then compare the provider package versions with what the target version supports.
- Rollback: Ask whether the provider can revert an environment to a prior Airflow version and what happens to its metadata. Keep a rebuild path from version-controlled DAGs, and confirm the rebuild steps in writing with the provider.
Check that every provider answer on versions, upgrade windows and rollback is in writing, with dates attached.
Testing DAGs and integrations before cutover
Start by building a staging copy of the metadata database from a fresh backup, then run the Airflow 2 to 3 steps against it before anyone touches production. The upgrade guide asks you to be on Airflow 2.7 or later, back up the metadata database, run airflow db clean, and then run airflow db migrate. Record every error from that run. Next, run Ruff 0.13.1 or later with the AIR rules across the DAG repository, because the guide recommends them for flagging Airflow 3 breaking changes in code. Lint is static, so it cannot prove a DAG runs. Each DAG should then execute on the Airflow 3 runtime in staging, with checks on connections, provider packages, custom operators and plugins. Confirm the provider pins too, since operators such as BashOperator moved to apache-airflow-providers-standard.
Three breaking changes need written decisions as well as test runs. First, catchup_by_default is now False, so any DAG that depended on the old default will no longer backfill missed intervals on its own. Review each of those DAGs and write a backfill plan that gives the date range, the expected load on your executors and the owner who signs off. Second, SLAs were removed. Any alerting built on SLA misses needs a replacement, and you should confirm the replacement mechanism in the Airflow 3 guide before rebuilding it, then prove the new alert fires on a deliberately late task in staging. Third, the REST API moved from /api/v1 to /api/v2. Find every script, dashboard and CI job that calls the API, and test each one against /api/v2 before cutover.
The documented upgrade steps do not include a rollback procedure, so the rollback plan is a restore from the pre-upgrade backup, tested in staging before the production date. Rehearse the restore end to end: time it, start the Airflow 2 components against the restored database, and confirm that DAG history, variables and connections are intact. Name the person who makes the rollback decision and the point after which it stops being practical, because once the migration has run and new DAG runs have been written, restoring the backup also discards that run history. Check your database versions against the Airflow 3.3.2 prerequisites, which list PostgreSQL 14 to 18 and MySQL 8.0, 8.4 and Innovation releases, and note that MariaDB is not supported as a metadata database.
What an Apache Airflow major version upgrade costs and who does the work
What drives the cost of an Apache Airflow major version upgrade?
Cost follows the size and variety of your Airflow estate. The main drivers are:
- DAG count and complexity: each DAG is checked against the Airflow 3 breaking changes, so a large estate multiplies review and test effort.
- Custom operators and plugins: code that relies on removed features or internal behavior needs rewriting and its own tests.
- Provider packages: each provider has its own versions, so compatible sets must be pinned and tested together.
- Database size and engine: the metadata database needs a backup and a migration run, and the supported engines are listed in the prerequisites.
- Staging parity and environments: a staging copy that resembles production is what makes testing meaningful, and each extra environment repeats the work.
The bill splits into paid time for review, testing and cutover, plus infrastructure for a parallel staging stack. The upgrade itself is one-time, while staging and monitoring recur only while you keep them running. Ask any quote to itemize each driver with its assumptions.
How long does an Airflow 3 upgrade take?
No standard duration applies across estates, so ask for a written timeline as part of the scope before you set a cutover date. Two drivers set most of it. The first is DAG count, since every DAG needs review against the Airflow 3 changes. The second is test coverage: where DAGs have strong automated tests, the team can confirm behavior quickly, and where they do not, each DAG needs manual runs in staging. Timing also depends on how fast DAG owners respond and how many environments must move. Start planning early, because Airflow 2 reached end of life on April 22, 2026, and end-of-life versions get no fixes or support. In the written scope, ask for the milestones, the staging test window and the rollback point.
What does an Airflow upgrade need from our team?
The upgrade needs four groups of people and systems in place before work starts:
- DAG owners who review changes to their pipelines and confirm the output matches expectations.
- A staging environment close enough to production to run the DAGs, with production-like connections and data volumes.
- Database rights to back up the metadata database, run
airflow db cleanand runairflow db migrate, as the upgrade guide describes. - Owners of API consumers, because Airflow 3 replaces the
/api/v1REST API with/api/v2, and any script or tool that calls it must move too.
You also need a named person who can approve the production cutover and the rollback decision. Confirm these owners and access before the scope is signed, since delays here often extend the timeline.
Can our own team upgrade Airflow without an outside partner?
Yes, for a small estate with well-documented DAGs, a staging environment and tests the team trusts. The team needs an engineer who has read the Airflow 3 upgrade guide, a lint pass with Ruff 0.13.1 or later using the AIR rules to flag breaking changes in DAG code, and time to fix what the lint pass and staging runs reveal. The main risk is the cost of a failed production migration: a stalled metadata database migration, lost run history, or a rollback that does not match the database state. Those failures land on the same people who run the pipelines. If DAGs are undocumented, tests are thin or one person holds the knowledge, a fixed-scope engagement can take on review and cutover, and you can weigh its cost against the cost of a failed migration.
How does an upgrade change if we use a managed Airflow service?
The provider sets the timing. Amazon Managed Workflows for Apache Airflow, Google Cloud Composer and Azure's Workflow Orchestration Manager each run Airflow on their own schedule, so the versions you can use depend on what the provider offers. Microsoft says new Airflow instances can no longer be created in Azure Data Factory Workflow Orchestration Manager from January 1, 2026, and recommends Apache Airflow jobs in Microsoft Fabric instead. You still own DAG code, provider package choices, tests and the API clients that call Airflow. Ask the provider which versions are offered, how long each stays supported, whether an upgrade happens in place or in a new environment, and what changes to your metadata database during it. Confirm these points with the provider, since its policies set your timing. Amazon MWAA user guide
When should we get outside help with an Airflow major version upgrade?
Bring in outside help when the estate is large or carries features that need redesign. Four cases matter most:
- Large estates, where DAG review and testing exceed what the team can run alongside its normal work.
- Heavy SubDAG use, since SubDAGs were removed in Airflow 3 and need redesign.
- SLAs, since they were removed in Airflow 3 and need an alternative design.
- Custom operators or a metadata database that must change engines, which adds rewriting, testing or migration work on top of the version change.
DeployOpen plans, implements, tests, backs up, documents and supports self-hosted open-source platforms in your own infrastructure. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. DeployOpen does not publish prices. A quote follows from the written scope.
How DeployOpen plans and runs an Apache Airflow upgrade
DeployOpen plans an Apache Airflow major version upgrade as a fixed-scope engagement inside your own infrastructure. The work starts with the version you run today, the DAGs and providers that depend on it, and the breaking changes that apply to your estate. Each step is agreed in writing before work starts.
How we scope
- Inventory of Airflow 2 DAGs, custom operators, providers, executors and the metadata database size.
- Written scope that names the target Airflow version, in-scope DAGs, environments and handover deliverables before work begins.
- Engagements are fixed-scope, and ongoing support is available as a retainer after the upgrade.
How we build
- Start from Airflow 2.7 or later, ideally the latest 2.x release, then follow the documented upgrade path.
- Lint DAGs with Ruff 0.13.1 or later and its AIR rules to flag Airflow 3 breaking changes before cutover.
- Move operators such as BashOperator to
apache-airflow-providers-standard, then test each DAG in a staging copy.
How we hand over
- Back up the metadata database, run
airflow db cleanandairflow db migrate, and test rollback before cutover. - Documentation covers the DAG changes, configuration, connections, runbooks and the rollback steps your team will use.
- Handover includes the documentation and scoped deliverables, so your team can run the upgraded platform.
How we support
- Ongoing support, upgrades and continuous testing can run under a retainer after cutover.
- Ask how a retainer covers tracking Airflow 3 patch releases, such as 3.3.2, and re-testing DAGs after each one.
- Continuous testing and security review of the upgraded platform are available as retainers, scoped in writing.

