Airflow 2 to 3 Migration: Fix 5 Breaking Changes in 2026
Airflow 2 reached end of life in April 2026. Here is the Airflow 2 to 3 migration guide covering the 5 breaking changes that actually cause outages.
By Babul Jack
Apache Airflow 2 reached end of life on April 22, 2026, and it no longer receives security patches, bug fixes, or provider updates. If you are still running Airflow 2 in production, the Airflow 2 to 3 migration is not optional anymore - it is a compliance and security decision. In client projects I have found the upgrade itself is straightforward on paper and genuinely painful in the details, because five specific breaking changes quietly break DAGs that looked fine in code review.
This guide walks through exactly those five changes, in the order I'd fix them, plus the parts of the official migration path that the docs mention in passing but that actually eat the most engineering time.
Why Airflow 2 end of life forces your hand
Open-source Apache Airflow 2 reached its documented end of life on April 22, 2026, confirmed by Apache's own upgrade guide and by Astronomer's upgrade checklist. After that date, no more bug fixes or provider package updates land on the 2.x line.
That matters more than it sounds. If a CVE surfaces in a provider package or in Airflow's core dependencies, you are on your own. For teams under SOC 2, HIPAA, or PCI-DSS, running unpatched orchestration software in production is a finding waiting to happen, not a hypothetical risk.
Adoption data backs up how much is still in flight: Astronomer's 2026 survey found that 26% of Airflow users had already upgraded to Airflow 3 within the first year of release - a fast pace for a major version, but it also means a large majority were still mid-migration or hadn't started as EOL hit.
Is this really a migration or a rewrite?
It is neither, in the strict sense. Airflow 3 deprecated old syntax rather than deleting it wherever possible, so a meaningful share of Airflow 2 DAGs run unchanged on Airflow 3. The catch is that "unchanged" only applies to DAGs that never touched the handful of patterns Airflow 3 removed outright.
The realistic answer, based on what I've seen in mid-size deployments (50-200 DAGs), is 4-8 weeks of focused work: inventory, fix the breaking patterns below, test in a parallel environment, then cut over. That estimate lines up with industry figures reported by Kestra's analysis of the EOL migration.
The 5 breaking changes that actually cause outages
These are the issues I'd triage first, because they fail silently or produce confusing errors rather than clean import failures.
1. xcom_pull() without task_ids now only checks the current task
In Airflow 2, calling xcom_pull() without a task_ids argument searched the entire DAG run and returned the most recent value pushed under that key, across tasks. In Airflow 3, the same call checks only the current task. Per the official breaking changes list, you must now pass task_ids explicitly:
# Airflow 2 - searched all tasks in the DAG run
value = context["ti"].xcom_pull(key="result")
# Airflow 3 - specify task_ids to pull from other tasks
value = context["ti"].xcom_pull(task_ids="upstream_task", key="result")
This one is dangerous precisely because it doesn't throw an error - it just silently returns None or the wrong value, and you find out from a downstream task failing with bad data, not an import error.
2. Direct metadata database access from tasks is blocked
Airflow 2 let any task run raw SQL against the Airflow metadata database through a Session object. Airflow 3's architecture separates user task code from the scheduler entirely, so any task that queries the metadata DB directly now fails with RuntimeError: Direct database access via the ORM is not allowed in Airflow 3.0.
The fix is to swap that code for the Airflow Python Client or the REST API, both of which go through the new API server component instead of touching the database. If you inherited DAGs with custom reporting tasks that query DagRun or TaskInstance tables directly, start your audit there.
3. SubDAGs are removed entirely
SubDAGs were deprecated for years in Airflow 2.x, and in Airflow 3 they are simply gone. Any DAG still using them for modular logic needs to move to task groups or dynamic task mapping before the upgrade, not after. This tends to be where the bulk of refactoring time goes in older deployments, according to both the Astronomer checklist and Kestra's breakdown of real migration issues.
4. Provider packages moved out of apache-airflow core
Common operators like BashOperator and PythonOperator moved to a separate apache-airflow-providers-standard package. If your requirements.txt only pins apache-airflow, your imports will fail on a fresh Airflow 3 install until you add the standard provider package explicitly.
5. Scheduling defaults and the cron timetable changed
Three scheduling defaults flipped between Airflow 2 and 3, per the official docs:
Setting
Airflow 2 default
Airflow 3 default
schedule
timedelta(days=1)
None
catchup
True
False
cron timetable
CronDataIntervalTimetable
CronTriggerTimetable
The timetable change is the subtle one: under the new CronTriggerTimetable, logical_date now reflects the moment the schedule actually fires, instead of the start of the prior interval. Any DAG code that derives file paths, partition keys, or alert text from logical_date, ds, or ts needs to be checked, or you'll quietly process the wrong day's data. You can revert to the old behavior with the create_cron_data_intervals config flag while you fix the code properly.
How to run the migration without breaking production
Upgrade to the latest Airflow 2.11 first. This surfaces deprecation warnings you'd otherwise hit blind on Airflow 3, as both Apache's docs and Astronomer's checklist recommend.
Run the ruff linter against your DAGs. The AIR301/AIR302 rules flag confirmed breaking changes; AIR311/AIR312 flag changes that aren't breaking yet but should be fixed anyway.
Inventory every SubDAG and direct-DB-access pattern before you touch anything else - this is where most of the unplanned work hides.
Clean the metadata database (archive old XCom and task history) before upgrading; large metadata tables make the schema migration take hours instead of minutes.
Pin your Python dependencies so the Airflow upgrade doesn't also silently bump unrelated packages.
Stand up Airflow 3 side by side, not in place. Test your updated DAGs there, then cut traffic over DAG by DAG rather than all at once.
Set explicit static start dates on DAGs you move over, since logical-date semantics changed with the new timetable.
Should you migrate to Airflow 3, or move off Airflow entirely?
This is a fair question to ask during the EOL window, not after. If your team is Python-native and has real investment in Airflow operators and institutional knowledge, upgrading to Airflow 3 is the pragmatic call - you keep your tooling and your trained staff.
If you've been fighting Airflow's Python-only ownership model, or your workflows span data, infrastructure, and business processes that don't map cleanly to DAGs, the EOL forces a decision you were probably deferring anyway. The switching cost to an alternative orchestrator is comparable to the Airflow 3 upgrade itself - both land in the same 4-8 week range for a mid-size deployment - so the real question is which architecture you want to be locked into for the next several years, not which migration is cheaper.
For pipelines that increasingly involve an AI agent reading DAG state, generating SQL, or deciding which model to retrain, it's also worth validating the agent layer itself before you migrate it onto new infrastructure - that's exactly the kind of evaluation work covered in AI agent development engagements I run for clients moving orchestration and agent logic together.
Frequently asked questions
When did Airflow 2 reach end of life?
Apache Airflow 2 reached end of life on April 22, 2026. Since that date, the 2.x line receives no further security patches, bug fixes, or provider package updates.
Can I upgrade straight from an old Airflow 2.x version to Airflow 3?
Technically yes, from Airflow 2.7 onwards, but it's strongly recommended to upgrade to the latest Airflow 2.11 release first so you can see deprecation warnings before you're forced to debug them live on Airflow 3.
Will my existing DAGs just break on Airflow 3?
Many won't, because Airflow 3 deprecated rather than removed most old syntax. But DAGs using SubDAGs, direct metadata database access, or relying on the old xcom_pull() search-all-tasks behavior will fail, so you need to audit for those patterns specifically rather than assume a clean upgrade.
How long does a typical Airflow 2 to 3 migration take?
For a mid-size deployment of roughly 50-200 DAGs, plan for 4-8 weeks of focused engineering work, covering inventory, code fixes, side-by-side testing, and a staged cutover.
Is it safe to keep running Airflow 2 after end of life?
No, not for long. Any new CVE in Airflow 2 or its dependencies won't be patched, and organizations with SOC 2, HIPAA, or PCI-DSS obligations will typically need to show they're on supported software to keep their certifications current.
Key takeaways
Apache Airflow 2 reached end of life on April 22, 2026 - no more security patches or provider updates for the 2.x line.
The five breaking changes that cause real outages are: xcom_pull() scope, blocked direct database access, removed SubDAGs, relocated provider packages, and changed scheduling defaults.
Run the Airflow ruff rules (AIR301/AIR302) against your DAGs first to get a concrete list of what needs fixing before you touch production.
Budget 4-8 weeks for a mid-size deployment, and migrate side by side with a staged DAG-by-DAG cutover rather than an in-place upgrade.
If you're evaluating whether to stay on Airflow or move to a different orchestrator, the EOL window is the cheapest moment to make that call - switching costs only go up from here.