Free forever, no credit card.Get Started for Free →
← All posts
November 23, 2026 · 6 min read

Does Apache Airflow Remember Between Runs? An XCom Lives for One Run. The Reasoning Lives Nowhere.

Does Apache Airflow Remember Between Runs? An XCom Lives for One Run. The Reasoning Lives Nowhere. Ask whether Apache Airflow remembers between runs and the answer splits cleanly in two. Airflow remembers the mechanics of a pipeline very well: which runs happened, which tasks succeeded, and what small values one task handed to the next inside a single run. It does not remember what an AI step inside that pipeline concluded, decided, or learned while it worked. Those are different kinds of memor

Does Apache Airflow Remember Between Runs? An XCom Lives for One Run. The Reasoning Lives Nowhere.

Ask whether Apache Airflow remembers between runs and the answer splits cleanly in two. Airflow remembers the mechanics of a pipeline very well: which runs happened, which tasks succeeded, and what small values one task handed to the next inside a single run. It does not remember what an AI step inside that pipeline concluded, decided, or learned while it worked. Those are different kinds of memory, and the gap between them is exactly where scheduled AI workflows start repeating themselves.

Inside one run: XCom is a handoff, not a memory

The mechanism most people meet first is XCom, short for cross-communication. When a task finishes, its return value is pushed to the XCom table in Airflow's metadata database, stored under the DAG id, the run id, the task id, and a key. A downstream task pulls that row back by naming the task and the key, and work continues.

Every part of that design is scoped to the run. A task in Tuesday's run pulls Tuesday's row; it cannot see the value Monday's run pushed under the same key. The values must be small and JSON-serializable, because they sit as rows in the same database the scheduler depends on. And when a task instance retries, its own XComs from the earlier try are deleted first, so a retry never reads a half-finished result left behind by the attempt that failed.

XCom is a well-built handoff channel. It was never designed to be a memory that survives the run, and Airflow's own documentation says so plainly: XComs should not be used to persist data across task retries or across runs.

Across runs: Variables and the run record

Two things do persist across runs. The first is Variables. A Variable is a global key-value entry stored in the metadata database, readable by any task in any DAG, and it keeps its value until someone changes it. Airflow positions Variables as deployment-wide configuration that changes infrequently and is set by operators rather than by tasks: endpoints, thresholds, feature flags, environment settings.

The second is the run record itself. The metadata database keeps the history of DAG runs and task instances, their states, durations, and logs. That record answers operational questions well. What ran, when, and did it succeed. It does not answer what the work produced in any meaningful sense, beyond the small XCom values attached to that specific run.

So the cross-run memory Airflow offers by default is configuration plus an audit trail. A watermark or cursor can be parked in a Variable, and many teams do exactly that, but the Variable holds one current value. It holds no history of how that value was reached, no record of the exceptions the last run handled, and no reasoning an AI task produced along the way.

The newer answer: state stores in Airflow 3.3

Airflow 3.3 added two purpose-built stores, and their existence is an admission that the gap above was real. The task state store lets a single task persist key-value data that survives its own retries, such as an external job id submitted before a worker crashed, with an option to clear that state after a successful run. The asset state store is scoped to an asset rather than a run, persists indefinitely, and is designed for cross-run watermarks and incremental-load cursors.

These stores are genuinely useful, and they sharpen the picture rather than change it. Each one answers a data-position question: where did processing stop, what job is in flight, what has this asset seen. Neither one stores a conversation. When a DAG contains an LLM task that triages records, drafts a summary, or decides which exceptions deserve escalation, the text it read, the judgment it formed, and the wording it chose leave no trace in any of these stores once the run ends.

What the next run of an AI task actually gets

Picture a nightly DAG with an AI step in the middle: it reads new support tickets, groups them, and drafts follow-ups. On night one it works out that one account always writes in about the same integration, that a certain error message is harmless, and that another pattern means churn risk. On night two, the DAG fires again. The XComs are fresh and empty. The Variables hold configuration. The asset state holds a cursor. The AI step opens with none of night one's understanding, because that understanding was never data position. It was context, and Airflow has no shelf for context.

The usual workarounds confirm the shape of the problem. Teams paste summaries into prompts by hand, keep a shared document the prompt reads from, or write run notes into a table and hope the next prompt template remembers to load them. Each workaround stores text somewhere. None of them gives every tool in the workflow the same living memory, and each one breaks the moment a second tool, a second DAG, or a chat session with the same agent needs the same context.

A memory layer that sits outside the DAG

That is the job Vilix AI is built for. Vilix AI is a cloud-hosted memory layer that AI tools and agents connect to over MCP, the Model Context Protocol. There is no infrastructure to run: no database to provision, no metadata store to maintain, nothing to deploy next to the scheduler. An Airflow task that calls an AI model can read from and write to the same memory that a chat session, a coding assistant, or another automation platform uses, because the memory lives outside every individual tool.

What gets stored is also different in kind. Vilix AI keeps full conversation history, not just extracted facts or single values, so the next run can load what was actually said, decided, and tried, in order. An agent that handled an exception last night can start tonight knowing how it handled it and why. Memory can be exported or deleted at any time, so the record stays under the operator's control.

Getting started costs nothing to test. Vilix AI has a free plan that stays free forever, and Pro comes with a 7-day trial that needs no card. For an Airflow operator, the wiring is one MCP connection in the AI step rather than another table to babysit.

The short answer

Does Apache Airflow remember between runs? It remembers configuration, run history, and, since 3.3, data position through its state stores. Within a run it hands small values between tasks through XCom. What it never remembers is what your AI steps understood. Keep Airflow for orchestration, where it is strong, and give the agents inside it a memory of their own: one shared memory, held outside the DAG, that every run and every tool can read. Start with Vilix AI and let tonight's run begin where last night's run ended.

Get Started for Free

Persistent memory across ChatGPT, Claude, and the AI tools you already use in Vilix AI.

Get Started for Free

Free forever, no credit card.

Keep reading
Does Snowflake Remember Between Runs? A Stream Offset Moves. The Reasoning Does Not.

Does Snowflake Remember Between Runs? A Stream Offset Moves. The Reasoning Does Not. Ask whether Snowflake remembers between runs and the answer splits in two. Snowflake remembers data movement very well: which rows changed, where a stream offset sits, and whether a task ran. It does not remember what an AI step inside that pipeline concluded, decided, or learned while it worked. Those are different kinds of memory, and the gap between them is exactly where scheduled AI workflows start repeatin

Does Matillion Remember Between Runs? The High Watermark Holds. The Reasoning Does Not.

Does Matillion Remember Between Runs? The High Watermark Holds. The Reasoning Does Not. Ask whether Matillion remembers between runs and the answer splits in two. Matillion remembers the data position of a pipeline very well, if you build that memory yourself in the warehouse. It does not remember what a run, an automation, or an AI agent was thinking while it worked. Those are different kinds of memory, and confusing them is where scheduled data workflows start repeating work they already fini

Does Fivetran Remember Between Runs? The Cursor Holds. The Reasoning Does Not.

Does Fivetran Remember Between Runs? The Cursor Holds. The Reasoning Does Not. Ask whether Fivetran remembers between runs and the answer splits in two. Fivetran remembers position with real discipline: which rows it already sent, where an incremental sync stopped, and what state the last checkpoint saved. It does not remember what a run was trying to accomplish, which anomalies it already investigated, or why a downstream agent handled a record one way instead of another. That second kind of m