Airflow 3.4 Release Notes

Upgrade Risks for Data Engineers

Airflow 3.4.0 adds Task Loops and a hard-to-reverse XCom migration. What the 3.2 to 3.4 release notes mean for Data Engineer upgrades and interviews.

Published: Proudly published by: Jeff Wahl10 min read

What this post covers

01

What Airflow 3.4.0 Ships: Release date, headline features, and scope from official notes

02

Pandas 3 and DataFrame XComs: Upgrade ordering, worker risk, and rollback unreadable XComs

03

Serialization Moves Into the Task SDK: 3.2.0 change and compatibility layer removal in Airflow 4

04

Task Loops Explained: How Task Loops work and what they replace

05

The XCom Table Migration: Separate table for new XCom rows and reversibility limits

06

A Safe Upgrade and Rollback Checklist: Backups, component ordering, and staging validation for Airflow upgrades

07

What Orchestration Upgrades Mean for Data Engineer Interviews: Reversibility, rollout order, and idempotency in system design answers

Apache Airflow 3.4.0 shipped with release notes dated November 6, 2026, and 2 changes in it matter for anyone running Airflow in production. The first is Task Loops (AIP-111), which let a decorated task group repeat a number of times decided at runtime. The second is a database migration that writes new XCom rows to a separate table called xcom_v2.[1] Upgrading is cheap: the notes say the upgrade was tested against a 300-million-row XCom table and doesn't read or rewrite XCom data.[1] Downgrading is the expensive direction. Going back below 3.4.0 means copying every XCom row written after the upgrade back into the old table, so rollback time grows with every day you run 3.4.[1]

Add 3.3.1's pandas 3 change, which can leave DataFrame XComs unreadable after a rollback,[2] and 3.2.0's move of serialization into the Task SDK, with a compatibility layer the notes say will be removed in Airflow 4.[3] That's 3 consecutive releases with documented 1-way doors.

My read: the Airflow 3.4 upgrade is worth doing, and you should plan it as a data migration with a rollback budget, not a version bump. We covered the state store and the Java/Go Task SDK in our 3.3 piece; this one is about what 3.4.0 adds and what the last 3 sets of release notes say about getting back out if something goes sideways.

Prepare for the interview
01 / Open invite
02min.

Know the patterns before the interviewer asks them.

a system design query, the same shape a screen would give you.
The diff against expected. Where ties broke. What you missed.
sandbox
1source → bronze → silver → gold
2 ingest : CDC + Kafka
3 transform : dbt + Airflow
4 serve : Snowflake
5
Execute your solution0.4s avg.
PayPalInterview question
Solve a problem

What the Airflow 3.4.0 Release Notes Ship

Task Loops: Repetition With a Required Ceiling

You call .loop() on a decorated task group. It takes a positive integer max_iterations and an optional until callable.[4] According to the loops guide, a fixed-count loop with no until runs its full count and succeeds; if until never returns True before the cap, the final iteration is marked failed.[4]

A few constraints from the same guide are worth memorizing before you design around this:[4]

  • Loops can't be nested.
  • A loop can't sit inside a mapped task group, and a loop can't itself be mapped.
  • Mapped tasks inside a loop are allowed.
  • Iterations are created lazily. A loop that stops after 4 passes shows 4 iterations, not a wall of max_iterations placeholders.
  • Tasks can read loop.index (starting at 1) and loop.max_iterations.

The required ceiling is the part I like. Every "poll until the upstream file lands" or "refine until the metric converges" job I've inherited was a while loop hiding inside a Python operator, with a timeout someone set in 2019 and never looked at again. Making the bound a declared parameter puts the termination guarantee where a reviewer can actually see it.

The other thing to internalize: a loop that hits its cap and a loop that converges end in different states. The first one is a failure. If your downstream tasks assume success, you'll want to think about their trigger rules and what you alert on before the first non-converging run happens at 3am.

The Dag Importer

3.4.0 also adds the Dag Importer (AIP-85), which lets the Dag processor read Dag sources beyond .py files; the official release blog says whole Dags can be written in TypeScript, Java, or Go.[5] Some secondary write-ups add YAML to that list or describe the feature as experimental. I couldn't confirm either in the primary sources, so I'm not repeating them as fact. Read the notes for your exact version before you build on it.

The Airflow XCom Migration: Cheap Going Up, Expensive Coming Down

Here's what the 3.4.0 release notes say about the XCom change, stated plainly:[1]

  • New XCom rows are stored in a table named xcom_v2.
  • The upgrade migration was tested on a 300-million-row XCom table and doesn't read or touch XCom data.
  • Downgrading to any version before 3.4.0 copies post-upgrade XCom rows back to the old table, so downgrade time depends on how many rows were written.
  • Each migration commits separately. If the downgrade hits data it can't safely map back, it stops, and the later 3.4.0 migrations are already reversed by then.
  • Recovery is to repair the data and rerun the downgrade, or run airflow db migrate to return to 3.4.

Read that 4th bullet twice. A failed downgrade leaves your metadata database in a state that belongs to neither version. Your 2 options are "fix it and keep going down" or "go back up." Restoring to the starting point isn't one of them unless you took a backup.

The downgrade path is also still moving. A project issue (#74332) reported that migration 0142, the task instance and task instance history merge, refused to downgrade at all while xcom_v2 held data. A follow-up pull request, #74407, changes the downgrade to fold xcom_v2 and rendered-field rows into the legacy tables instead of refusing; per the PR, only the latest attempt restores losslessly, and XCom and rendered-field data from earlier attempts is dropped.[6] I couldn't confirm which version that behavior lands in. Until you can, assume a downgrade off 3.4 loses retry history even when it succeeds.

The practical move is to measure your exposure. Once you're on 3.4.0, this is the number your rollback has to chew through:

-- Run against the Airflow metadata database after upgrading to 3.4.0.
-- Every row here is a row a downgrade must copy back to the legacy xcom table.
SELECT
COUNT(*) AS rows_to_copy_on_downgrade
FROM xcom_v2

Track that daily for the first couple of weeks. The day it's large enough that a rehearsed downgrade blows past your maintenance window, you've crossed the point of no return, whether anyone decided that or not. I'd rather someone decide it.

Key takeaway: On 3.4.0, rollback cost is a function of how long you've been running, so the time to decide whether you'll ever roll back is before the upgrade, while the answer is still cheap.

The Older Airflow Upgrade Hazards: pandas 3 and the Serde Move

pandas 3 and DataFrame XComs (3.3.1)

Airflow 3.3.1, released August 12, 2026, deals with pandas 3 renaming the DataFrame class from pandas.core.frame.DataFrame to pandas.DataFrame. Airflow registers both names, so either pandas version can read the other's DataFrame XComs.[2] The catch is everything that isn't on 3.3.1 yet:[2]

  • A component on an older version fails the XCom pull with an ImportError saying pandas.DataFrame isn't in the deserialization allow list.
  • The notes say to upgrade every component, workers first, before pandas 3 reaches any of them.
  • Rolling back to a version without the change strands DataFrame XComs written under pandas 3. They stay unreadable until you roll forward.
  • Under pandas 3, string columns load as str instead of object, and missing values load as nan instead of None. The reader's pandas version decides which you get, not the writer's.

2 honest caveats. Sources disagree on whether adding the class to allowed_deserialization_classes fixes the ImportError, so I'm not giving you that as a fix. And a July 30, 2026 dev call recorded a different plan, pinning pandas < 3; the shipped 3.3.1 notes describe name registration instead. Trust the artifact that shipped and check your constraints file.

That dtype change is the sneaky one. A downstream task doing if value is None silently stops matching anything once missing values come back as nan. No error, no failed task, just wrong rows. I once spent most of a week chasing a pipeline that dropped records for exactly this category of reason: a library upgrade changed what "empty" looked like, and every equality check downstream kept passing. Write a contract check on pulled data that tolerates both worlds:

import pandas as pd
def check_pulled_frame(df: pd.DataFrame) -> pd.DataFrame:
"""Contract check that passes under pandas 2 (object) and pandas 3 (str)."""
if not pd.api.types.is_string_dtype(df["customer_id"]):
raise TypeError(f"customer_id has dtype {df['customer_id'].dtype}")
# isna() catches both None and nan; `is None` comparisons miss nan
missing = int(df["customer_id"].isna().sum())
if missing:
raise ValueError(f"{missing} rows missing customer_id")
return df

Serialization Moves Into the Task SDK (3.2.0)

Airflow 3.2.0, dated April 7, 2026, moved serde logic out of airflow-core into the task-sdk package. It now loads from airflow.sdk.serde, and serializers moved from airflow.serialization.serializers.* to airflow.sdk.serde.serializers.*.[3] Old imports still work with deprecation warnings, and the notes say the backward compatibility layer "will be removed in Airflow 4."[3] The same release moved task-facing exceptions like AirflowSkipException and TaskDeferred to airflow.sdk.exceptions, so workers no longer need airflow-core at runtime.[3]

There's no announced Airflow 4 date that I could find. Don't read that as permission to wait. The 3.4.0 notes describe shims emitting RemovedInAirflow4Warning that are slated for removal in 4.0, and they also report the deprecated Dataset alias already removed from the airflow module (#70154) in favor of Asset from airflow.sdk.[1] So "deprecated" can mean "gone next minor release." Turn deprecation warnings into test failures in CI and fix the imports while it's a find-and-replace job.

An Airflow Upgrade Checklist That Assumes You'll Need to Roll Back

Here's how the 3 releases stack up on reversibility, based on the notes:

ReleaseChangeWhat rollback costs
3.2.0Serde moves to airflow.sdk.serdeOld import paths still work for now; the shims have an expiry date
3.3.1pandas 3 DataFrame class name registeredRolling back past it strands pandas 3 DataFrame XComs until you roll forward
3.4.0New XCom rows go to xcom_v2Downgrade copies rows back; slow in proportion to volume, can stop partway, may drop earlier-attempt history

The official upgrade guide says to back up the metadata database before migrating, and notes that a cold backup taken after stopping Airflow is more consistent when hot backup isn't available.[7] For a Postgres metadata database, the minimum looks like this:

# Stop schedulers, dag processors, API servers, and workers first for a cold backup.
# AIRFLOW_META_PG_URI must be a plain postgresql:// URI, not a SQLAlchemy driver URI.
pg_dump --format=custom --file=airflow_meta_pre_3_4.dump "$AIRFLOW_META_PG_URI"
airflow db migrate

Then the rest of the list:

  • Restore the backup into a copy and rehearse the downgrade there. Time it. That number is your real rollback window, and it only gets worse.
  • Upgrade readers before writers. Every component on 3.3.1 or later before pandas 3 touches any worker.[2] Pin pandas explicitly so a transitive dependency doesn't make that decision for you.
  • Set a rollback deadline. After N days on 3.4.0, the plan becomes "fix forward." Write it down so nobody argues about it during an incident.
  • Lint for deprecated imports and fail CI on deprecation warnings before Airflow 4 removes the shims.
  • Make loop bodies idempotent. This is my reasoning, not something the notes say: every iteration reruns task instances, so a body task that appends to a table or calls an external API will do it once per pass. Upserts and deterministic keys, same as any retry. Our idempotent pipeline design page walks through the patterns.

The economics here are boring and decisive. A pg_dump and a rehearsal on a throwaway copy cost an afternoon and some storage. A half-downgraded metadata database during a business-hours outage costs your whole team's day, plus whatever the stalled pipelines were feeding.

Analysts Are Slowing the Store Down

> Analytics queries against the production database are slowing the live application. Move analytics onto its own warehouse fed from the database's change log, while a merchant dashboard shows new orders within fifteen minutes on a path of its own.

Source
Transform
Storage
Quality
Consumer
Queue
Zone
Pipeline Architecture
Sketch the architecture

Add a node from the toolbar or right-click the canvas

Drag from a right port to a left port to wire data flow

Why This Shows Up in Data Engineer Interviews

Nobody's going to ask you to recite the 3.4.0 release notes. Interviewers ask about the reasoning underneath them, because that reasoning is what on-call actually requires. I've sat on panels where a candidate nailed every Airflow interview question about operators and sensors, then froze on "your upgrade broke prod, walk me through the rollback." That second question is the job.

The patterns these releases hand you, almost ready-made:

  • Code rollback versus data rollback. Redeploying the old image is easy. The 3.4.0 notes show the metadata can be the slow, lossy part. Strong answers separate the 2 and price the second one.
  • Rollout order across a fleet. The pandas 3 case is the textbook version: readers upgrade before writers change format. Mixed-version fleets are where real incidents live.
  • Non-atomic migrations. Per-migration commits mean a failure leaves you in between. Be ready to explain why "rerun after fixing data" and "migrate forward" are your only exits, and what you'd have done beforehand to get a third one (a backup).
  • Bounded loops. "How do you stop a retry or refinement loop from running forever?" A declared cap plus an explicit failure state when you hit it. Then: what do you alert on, the failure or the iteration count?
  • Idempotency under repetition. If a task can run 5 times, what happens to the table it writes?

This is pipeline architecture, the part of Data Engineering system design I think actually matters for DEs. Nobody cares about your load balancer. They care whether you can get a broken platform back to a known state without losing data.

Same rule as always: concepts transfer, tool trivia doesn't. Swap "XCom" for "Kafka topic schema" or "dbt manifest" and every one of those answers still holds. If you want to practice explaining these out loud under time pressure, the mock interview simulator is the best practice I've found for the talk-through-your-reasoning part, which is where most people lose points.

What to Watch Next After the Airflow 3.4 Upgrade

3 things to track, all grounded in what's documented:

  • The downgrade fix. Issue #74332 and PR #74407 show the 3.4.0 downgrade path is still being worked on.[6] Watch the patch release notes for which behavior ships, especially whether earlier-attempt XCom data is dropped. Don't call your downgrade "safe" until the notes for your exact version say so.
  • Airflow 4 timing. The removal of the 3.2.0 serde shims and the RemovedInAirflow4Warning shims is tied to 4.0, which has no date I could find.[1][3] Clean up imports now while it's cheap.
  • Your own xcom_v2 row count. That's the number that tells you whether rollback is still a real option.

Upgrade to 3.4. Task Loops are a genuinely useful primitive, and the upgrade migration was built to be cheap. Just take the backup, rehearse the downgrade once, and decide on day 1 when you stop pretending you'll ever use it. The tools change every 18 months; "can we roll this back?" has been the question at every 3am incident I've ever worked, and it'll be the question in your next system design round too.

References

  1. Apache Airflow, "Release Notes, Airflow 3.4.0," 2026-11-06. airflow.apache.org
  2. Apache Airflow, "Release Notes, Airflow 3.3.1," 2026-08-12. airflow.apache.org
  3. Apache Airflow, "Release Notes, Airflow 3.2.0," 2026-04-07. airflow.apache.org
  4. Apache Airflow, "Loops," Airflow 3.4.0 authoring and scheduling documentation. airflow.apache.org
  5. Apache Airflow Blog, "Apache Airflow 3.4.0: Task Loops, Dags in Any Language, and AI Agents." airflow.apache.org
  6. apache/airflow on GitHub, Pull Request #74407, "Allow downgrading past the TI ownership migration when data is present." github.com
  7. Apache Airflow, "Upgrading Airflow to a newer version," Airflow 3.4.0 documentation. airflow.apache.org

Airflow 3.4Airflow 3.4.0 release notesAirflow upgradeAirflow XComdata engineer Airflow interview
02 / Why practice

Try the actual problems

  1. 01

    Reading a solution is not the same as writing one

    Every engineer who has frozen on a query they had read a dozen times knows the gap. The only preparation that closes it is producing the answer yourself, under time, before the interview does it for you

  2. 02

    76% of hiring managers reject on the coding task, not the resume

    From HackerRank's 2024 Developer Skills Report. Candidates who look strong on paper still fail the live screen if they haven't done timed, executable practice

  3. 03

    System design comes down to the calls you defend out loud

    Ingestion, batch vs streaming, the bronze/silver/gold layers, idempotency, backfill and replay. Sketching the pipeline and naming the failure modes is the signal, not the boxes