Does Ray Remember Between Runs? The Object Store Forgets. Only Checkpoints Survive.
Does Ray Remember Between Runs? The Object Store Forgets. Only Checkpoints Survive. Ray remembers a lot while a cluster is alive, and almost nothing once it stops. Inside a running cluster, tasks pass results through a shared object store, actors hold state in memory, and the head node tracks what is running where. End the cluster, restart the job, or start a fresh script tomorrow, and that whole picture is gone. The only things that cross the boundary into the next run are the checkpoints and
Does Ray Remember Between Runs? The Object Store Forgets. Only Checkpoints Survive.
Ray remembers a lot while a cluster is alive, and almost nothing once it stops. Inside a running cluster, tasks pass results through a shared object store, actors hold state in memory, and the head node tracks what is running where. End the cluster, restart the job, or start a fresh script tomorrow, and that whole picture is gone. The only things that cross the boundary into the next run are the checkpoints and artifacts a workload deliberately saved to persistent storage outside the cluster.
That split is easy to miss, because Ray feels stateful during a run. It becomes a real problem when Ray jobs gain AI steps: a nightly batch that scores records or triages cases with a model produces judgments worth keeping. Ray's machinery was built to move data through a cluster fast, not to brief the next run on what the last run decided.
The object store: fast memory with a cluster-sized lifetime
Every Ray cluster keeps an object store in shared memory on each node. When a task finishes, its result lands there, and other tasks fetch it by reference instead of copying data around. It is the reason Ray pipelines feel fluid: intermediate results stay close, cheap to pass, cheap to reuse.
The lifetime is the catch. The object store belongs to the cluster, not to the job's history. When the store fills, Ray spills objects to local disk to keep working, but spilling is overflow handling inside a live cluster, not a memory of past runs. When the cluster terminates, the store terminates with it. A script that runs again in the morning creates a new, empty store. Nothing in it knows what yesterday's tasks computed, which records they skipped, or why.
Object references underline the point. A checkpoint or result that points at an object store reference cannot be properly read on a different cluster. Ray's own documentation directs anyone who needs persistence across clusters to write the data out to disk or cloud storage instead. A reference is an address inside one cluster's memory. Once that memory is gone, the address points at nothing.
Actors: stateful for exactly as long as they live
Actors are Ray's stateful primitive: a long-lived process that holds variables, models, or counters and answers method calls one after another. Inside a run, an actor genuinely remembers. A scoring actor can keep a running tally, a parameter server can hold the latest weights, and a serving replica can keep a loaded model warm.
That memory ends with the actor. When the process exits or the cluster stops, the actor's state is not written anywhere by default. The next run constructs a new actor with a clean constructor and empty fields. Whatever the previous actor had learned about the data, the customers, or the exceptions it had already handled has to be rebuilt from external storage, or it is simply lost.
Serve deployments follow the same rule. A non-detached Serve instance is torn down when the script that started it exits. Even a detached instance lives only as long as its cluster: if the head node goes down, recovery means creating a new cluster and redeploying the applications into it. The deployment comes back. Its in-flight context and accumulated in-memory state do not.
Checkpoints: the one deliberate bridge between runs
Ray Train and Ray Tune offer the real persistence path, and it is explicit. A training run can save checkpoints, snapshots of model and training state, and restore from them after a failure or in a later run. Tune does the same for trials, saving state that a paused or preempted trial can resume from.
None of that survives by accident. Ray's persistent storage guide is blunt about the setup: for multi-node training, checkpoints need an external home every worker can reach, such as cloud object storage like S3, GCS, or Azure Blob, or a shared filesystem like EFS or NFS, configured through the run's storage path. Saved there, a checkpoint outlives the cluster and a new run can load it. Saved only on a worker's local disk, it can vanish with the node, and a checkpoint that was never saved does not exist at all.
Notice what a checkpoint holds, though. It holds training state: weights, optimizer state, step counts, trial progress. It is a resume point for a computation, not a record of reasoning. It does not store that a run flagged a supplier file as unreliable, that a model already reviewed the same case twice, or that an operator approved an exception last week. A resumed run continues the math. It does not inherit the judgment.
Why this gap hits AI automation operators
Classic distributed computing tolerates a blank start because the work is deterministic: same input, same output, nothing worth recalling. Scheduled AI work is different. Consider a Ray job that runs every night to enrich leads or classify support cases. Each run makes calls a human would want honored tomorrow: this account was already researched, that case was escalated for a reason.
Ray gives that job excellent execution and no continuity. The enrichment run re-derives context it already paid to produce. The classifier re-judges cases it judged before, sometimes differently. The summarizer starts cold, unaware of yesterday's conclusions. Teams patch the gap with hand-rolled tables and prompt stuffing, which works until a second tool, a second agent, or a second team needs the same history and finds it locked inside one pipeline's storage conventions.
The missing layer is shared agent memory
The fix is to separate two jobs Ray currently leaves tangled together. Let Ray do execution: scheduling, scaling, moving data through the cluster. Give the remembering to a memory layer built for it, one that every run and every tool reads before it starts and writes to when it finishes.
That is the role Vilix AI is built for. Vilix AI is cloud-hosted, so there is zero infrastructure to run or maintain: no database to provision, no store to back up, no cluster of your own to keep alive. It connects over MCP, the open protocol AI tools already speak, so the same memory is available everywhere the work happens: inside a Ray job, in a coding assistant, in a chat tool, in the next automation on a completely different platform.
Just as important is what Vilix AI keeps. It stores full conversation history, not just extracted facts, so a run can recover the reasoning, the caveats, and the decisions in context, not a flattened summary of them. When Tuesday's agent run records why a case was escalated, Wednesday's run, or a different agent entirely, starts briefed instead of blank.
Getting started costs nothing to test. Vilix AI has a free plan that stays free forever, and Pro comes with a 7-day free trial with no card required. Your memory stays yours: export it or delete it at any time. Ray will keep doing what it does best, turning compute into results at scale. Pair it with a memory that survives the cluster, and each run stops repeating the first day and starts building on the last one.