Free forever, no credit card.Get Started for Free →
← All posts
December 1, 2026 · 5 min read

Does Dask Remember Between Runs? The Scheduler Holds State in RAM. The Next Run Starts Empty.

Does Dask Remember Between Runs? The Scheduler Holds State in RAM. The Next Run Starts Empty. Dask has a memory, and it is genuinely impressive while a computation is alive. The scheduler tracks every task, every worker, and every result sitting in the cluster. Workers hold intermediate data in RAM and spill the overflow to local disk under pressure. Then the run ends, the client disconnects, or the scheduler restarts, and nearly all of it evaporates. The next run of the same job starts with th

Does Dask Remember Between Runs? The Scheduler Holds State in RAM. The Next Run Starts Empty.

Dask has a memory, and it is genuinely impressive while a computation is alive. The scheduler tracks every task, every worker, and every result sitting in the cluster. Workers hold intermediate data in RAM and spill the overflow to local disk under pressure. Then the run ends, the client disconnects, or the scheduler restarts, and nearly all of it evaporates. The next run of the same job starts with the code, the inputs it reads, and nothing it learned last time.

That gap used to be a footnote, because classic Dask jobs are deterministic: same data in, same result out, nothing to remember. It stops being a footnote when Dask pipelines gain AI steps. A nightly job that asks a model to triage failed records, summarize anomalies, or decide which partitions deserve a second look produces conclusions, not just outputs. Dask's state machinery was built to keep a computation alive, not to carry conclusions across runs.

The scheduler: a complete memory with no persistence

The scheduler is the cluster's brain. It holds the full task graph, knows which worker stores which result, and can even reconstruct how every result was produced, which is how it recomputes lost work when a worker dies mid-run. As a live coordination memory, it is excellent.

Its own documentation is blunt about the limit: if the scheduler process dies, there is currently no persistence mechanism to record and recover its state. Workers and clients reconnect when it returns, but the records of ongoing computations are lost. And the client's restart method goes further on purpose: it kills all workers and flushes all scheduler state, returning a clean cluster. Clean is the design goal. Nothing in the scheduler layer is meant to survive into tomorrow's run.

Futures: memory pinned to your local session

Results in Dask live exactly as long as something points at them. A task result stays in worker memory while a client holds a Future for it, or while an ongoing computation still needs it. Completed results are otherwise cleared as quickly as possible to make room for new work.

The consequence is easy to miss: distributed memory mirrors your local Python session. Delete the futures or the persisted collection in your notebook or script, and the scheduler removes the matching data from the cluster. Let the client process exit, which is what every scheduled batch job does at the end of a run, and the scheduler cancels that client's futures by default. The cluster forgets in step with the session that asked the questions. A cron-launched Dask job therefore ends each night by letting go of everything it computed, unless the job itself wrote results out to storage.

persist() and spill: caches, not recall

Two features sound like long-term memory and are worth separating from it. Calling persist on a collection pins its partitions in distributed RAM so follow-up computations run fast. That pin lasts only while the resulting futures are held. It is a cache with a reference counter, not a store the next run can open.

Worker spill works the same way at a lower level. When a worker crosses its memory thresholds, it serializes idle intermediate data to local disk, pauses under heavier pressure, and restarts in the extreme case. Spilled data is overflow parking for a live computation. It belongs to tasks the scheduler is still tracking, and it disappears with them. Neither mechanism gives a Tuesday run any way to ask what Monday's run concluded.

The dashboard remembers nothing either

The Dask dashboard is the tool operators watch, and it shows the present tense only: tasks processing, memory per worker, transfers in flight. Once a run finishes, the dashboard moves on. Logs can say a task erred and roughly when. They cannot say what an AI step inside that task decided, which records it flagged, or what it planned to check next time. Telemetry records that work happened. It does not preserve the reasoning the work produced.

What teams end up building by hand

So teams build the memory themselves. The common pattern is a manifest: as each partition or tile finishes, the job appends a line to a file or table recording success, failure, and the exception type, and the next run reads the manifest and submits only what is missing. Add model calls and the manifest grows columns: the label assigned, the summary written, the confidence reported. It works, and it is entirely hand-rolled. Every pipeline invents its own schema, its own retention, and its own way of stuffing yesterday's conclusions back into today's prompts, and none of it is visible to the other tools in the stack.

The layer that survives the session

The missing piece is memory that lives outside the client's lifetime and outside any one tool. Vilix AI is that layer: a cloud-hosted memory service that agents and AI steps connect to over MCP, the open protocol for giving models tools and context. There is no infrastructure to run and no database to provision, because Vilix AI is hosted and ready to connect.

What gets kept is also different in kind. Vilix AI stores full conversation history, not just extracted facts, so what an AI step worked through on Monday, the evidence it weighed and the conclusion it reached, is retrievable on Tuesday with its context intact. Because the memory sits outside Dask, the same memory is reachable from the rest of the workflow: an n8n automation, a Make scenario, a coding assistant, all over the same MCP connection. One shared memory across runs and tools, instead of a manifest format each pipeline maintains alone.

Getting started is deliberately light. The free plan is free forever, and the Pro trial runs 7 days with no card required. Memory can be exported or deleted at any time, so adopting it is not a lock-in decision. Dask remains superb at what it was built for: parallel computation that scales across a cluster. Pair it with a memory that outlives the scheduler, and each run stops starting empty.

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 Pentaho Data Integration Remember Between Runs? Variables Carry Values Inside a Run. Nothing Carries the Reasoning.

Does Pentaho Data Integration Remember Between Runs? Variables Carry Values Inside a Run. Nothing Carries the Reasoning. Pentaho Data Integration remembers the design of your work perfectly and the experience of running it barely at all. The repository keeps every job and transformation, every schedule, and a revision history of every change. Run the same job tonight that ran last night, though, and it starts with the parameters and variables it is handed at launch, the rows it reads from its s

Does Spring Batch Remember Between Runs? The Job Repository Keeps the Position. Not the Reasoning.

Does Spring Batch Remember Between Runs? The Job Repository Keeps the Position. Not the Reasoning. Spring Batch remembers a failed job remarkably well. It records every job instance, every execution, and every step in a job repository, and it can restart a failed job from the last committed chunk instead of the first record. What it does not record is what the work figured out. Each new run, launched with new parameters, starts its steps with a fresh execution context, and any AI step inside th

Does Oozie Remember Between Runs? The Coordinator Keeps the Schedule. Not the Reasoning.

Does Oozie Remember Between Runs? The Coordinator Keeps the Schedule. Not the Reasoning. Apache Oozie remembers a great deal about execution. It stores the state of workflow and coordinator jobs in its own database, tracks every action as it moves from waiting to running to a terminal state, and lets an operator rerun a failed action without starting the whole chain again. What it does not store is what the work learned. Each new coordinator action materializes a fresh workflow instance from th