Does Nomad Remember Between Runs? The Job Spec Survives. Each Allocation Starts Empty.
Does Nomad Remember Between Runs? The Job Spec Survives. Each Allocation Starts Empty. Nomad remembers between runs by keeping the orders and discarding the workplace. HashiCorp Nomad is a workload orchestrator: servers hold the cluster state, clients run the work, and every unit of work is an allocation created from a job specification. A batch job runs to completion, a periodic job fires again on a cron schedule, and a parameterized job waits until a dispatch hands it fresh input. A scheduler
Does Nomad Remember Between Runs? The Job Spec Survives. Each Allocation Starts Empty.
Nomad remembers between runs by keeping the orders and discarding the workplace. HashiCorp Nomad is a workload orchestrator: servers hold the cluster state, clients run the work, and every unit of work is an allocation created from a job specification. A batch job runs to completion, a periodic job fires again on a cron schedule, and a parameterized job waits until a dispatch hands it fresh input. A scheduler that relaunches the same work every hour clearly carries something forward. The useful question is exactly what it carries, because Nomad keeps four different kinds of memory, and only one of them was designed to hold what a run learned.
Piece one: the job specification is the standing memory
The most durable thing in Nomad is the job specification itself. When a job is registered, the servers store its definition: the task groups, the drivers, the resources, the environment, the schedule. A periodic stanza adds a cron expression and a setting such as prohibit_overlap, so launches do not pile on top of each other. Every launch of a periodic job is then a separate child job created from that parent definition. The child receives the same instructions as the last child, word for word. Nothing the previous child discovered is written back into the specification. The spec is memory in the sense that a printed checklist is memory: it guarantees the same starting point, and it guarantees the same blind spots, on every single run.
Piece two: server state remembers the fleet, then tidies it away
Nomad servers replicate cluster state among themselves, and that state is rich for a while. It holds jobs, allocations, evaluations, deployments, and node information, and the status of a periodic parent shows its previously launched children. That record is an operational history, not a working memory. Nomad periodically garbage-collects job, allocation, and evaluation data to keep the server footprint small, so old child jobs disappear from view once collection reaches them. Logs follow the same pattern: task output lives with the allocation on the client, and keeping it long term means shipping it somewhere else, to a system such as Loki. A run that matters has to export its own story before the platform tidies the story away.
Piece three: the allocation directory is a desk that gets cleared
Each allocation gets a working directory on one client. Inside it, tasks share an alloc directory, keep private files in a local directory, and hold secrets in a separate secrets directory. An ephemeral_disk block gives the task group shared scratch space in that allocation directory. The word ephemeral is the honest part. By default, Nomad allocation storage is discarded during new deployments, when allocations are rescheduled, or when a client is lost. A periodic launch does not even get the previous launch's desk: each child job receives a fresh allocation on whatever client the scheduler picks, so files left behind by the last run are simply not there. Anything written to that disk was a note left in a room that gets cleaned between guests.
Piece four: volumes remember, because someone set them up to remember
Persistence in Nomad is available, and it is always deliberate. A host volume maps a path on a specific client into the task, which ties the data to that machine. A CSI volume connects networked storage with its own lifecycle, so data can survive rescheduling and client loss. Either way, a human designs the storage, decides what gets written, decides the format, and writes the code that reads it back at the start of the next run. Nomad hands the next run a disk. What the disk means, which entries matter, and what changed since yesterday all have to be reconstructed by the job itself, every time, in code someone maintains by hand.
Where an AI agent step fits into this picture
Add an AI agent step to a scheduled Nomad job and the pattern sharpens. The agent receives the job's environment, any dispatch payload and metadata, and whatever files a volume carries. A parameterized dispatch can pass a customer name, a ticket range, or a date window. What dispatch cannot pass is the previous run's reasoning: which sources were already checked, which lead turned out to be a competitor, which draft was already sent, which warning appeared twice and then stopped. That reasoning lived in the last allocation's context and ended with it. The next launch starts with the same spec, the same prompt, and none of the judgment the last run built up. Operators end up re-briefing the agent in the prompt, pasting summaries into payloads, or bolting a hand-rolled state file onto a volume and hoping the format survives the next edit.
Give the agent a memory that sits outside the allocation
The fix is to keep agent memory where allocations cannot clear it. Vilix AI is a cloud-hosted memory layer for AI tools, reached over MCP, the Model Context Protocol. There is zero infrastructure to run: no database to provision inside the cluster, no volume to size, no sidecar to keep alive between launches. The Nomad job calls the same memory on every run, whether the allocation lands on the same client or a different one, and the same memory is also reachable from the other tools in the stack, so a run, a chat session, and a coding assistant all read one shared past instead of four partial ones.
What gets stored matters as much as where. Vilix AI keeps full conversation history, not just extracted facts, so the next run can read what the agent actually said, what it was told, and how a decision was reached, rather than a flattened summary with the reasoning stripped out. The previous launch stops being a rumor and becomes a readable record the next launch can continue from.
Getting started is deliberately light. The free plan is free forever, and the Pro plan offers a 7-day trial with no card required. Memory stays under the operator's control, with export and delete available anytime, so the shared past can be inspected, moved, or removed on demand. For a Nomad setup, that means the periodic job keeps doing what Nomad does well, placing work on the fleet on a schedule, while the agent's memory stops depending on which desk the work happened to land on.
Nomad's design is coherent: specs are durable, state is operational, allocation storage is disposable, and persistence is opt-in plumbing. None of those four layers was built to carry an agent's reasoning from one launch to the next. Put that reasoning in a memory layer built for it, and the next run starts from what the last run learned instead of starting from the spec alone.