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

Does Gearman Remember Between Runs? The Queue Can Replay a Job. The Worker Starts Empty.

Does Gearman Remember Between Runs? The Queue Can Replay a Job. The Worker Starts Empty. Gearman remembers a job for exactly as long as the job still needs doing, and under one condition most setups never enable. By default, every job queue inside the Gearman job server, gearmand, lives in memory. A job that is still waiting when the server restarts or crashes is lost and never runs. Turn on a persistent queue and an undelivered background job can survive that restart and be replayed to a worke

Does Gearman Remember Between Runs? The Queue Can Replay a Job. The Worker Starts Empty.

Gearman remembers a job for exactly as long as the job still needs doing, and under one condition most setups never enable. By default, every job queue inside the Gearman job server, gearmand, lives in memory. A job that is still waiting when the server restarts or crashes is lost and never runs. Turn on a persistent queue and an undelivered background job can survive that restart and be replayed to a worker. Either way, the moment a worker completes a job, Gearman removes it and keeps nothing about what the job found, decided, or produced. Gearman is a work distribution system with a short memory for pending work, not a memory for finished work.

What sits in the queue, and for how long

A client submits a job as three things: the name of a function a worker has registered, a workload payload, and optionally a unique ID. The server holds that job in an in-memory queue, wakes a worker that can run the function, and hands the job over. The client receives a job handle, and while the job is queued or running, that handle can be used to ask about its status: known or unknown, running or not, and how far through the work the worker reports it to be, as a numerator and denominator.

That is real, useful memory, but it is narrow and temporary. It covers one job, from submission to completion. The server tracks unique keys, job handles, functions, and job queues so it can route work and answer status questions. It does not build a record that later jobs can read. When the worker sends its completion, the job leaves the queue, the handle stops resolving to anything meaningful, and the next job with the same function name arrives carrying only the workload its own client put in it.

The persistent queue changes one thing only

Persistent queues exist to solve a specific problem: a background job has no attached client waiting on it, so if the server dies holding it, nobody notices and nobody resubmits it. With a queue type configured through gearmand's --queue-type option, the server writes a background job to an external durable store before placing it on the runnable queue. On completion, a second callback removes it from that store. If the server crashes or restarts in between, a replay step on startup reloads every job that never completed, and the queue comes back in the same state it was in before the crash.

Read that mechanism carefully, because its limits are the point. Persistence applies to background jobs only; foreground jobs are excluded because their client is still attached and can detect the failure and resubmit. And what gets persisted is the unstarted or unfinished job itself: function name, workload, unique ID. Nothing a worker learned while running a previous job is written to that store. A completed job is deleted from it as a matter of design. The persistent queue is insurance against losing pending work, not a history of completed work.

The unique ID forgets on purpose

The unique ID shows the same philosophy from another angle. Submit a job with a unique ID that matches a job already queued or currently executing, and Gearman coalesces them: the existing job is used and the new submission does nothing, even if its workload differs. That protects a system from duplicate work when a client retries a submission or two schedulers fire at once.

But the protection ends at completion. The documentation is explicit that coalescing does not apply to past, completed jobs. Submit the same unique ID an hour after the first job finished, and Gearman starts a brand new job with no knowledge that the earlier one ever existed. There is no built-in answer to the question an operator actually asks the morning after: did this run already happen, what did it conclude, and should the next run build on it or repeat it? Gearman answers that only while the answer is still in flight.

Where this leaves scheduled and AI-driven work

Now place an AI step inside a Gearman worker: a function that reads new records, checks them against what earlier runs established, and writes a summary. The worker code runs fresh on every job. It can report progress and return a result to a waiting client, and for a background job the result goes nowhere durable unless the worker itself writes it somewhere. The next scheduled job starts with a new workload string and nothing else. Anything the previous run discovered has to be re-derived, re-fetched, or pasted into the next workload by hand.

That gap is exactly what a shared memory layer fills. Vilix AI gives scheduled agents and automations one memory they all read and write, hosted in the cloud with zero infrastructure to run, so there is no server to provision, queue to back, or store to maintain. The same memory is reachable from every tool and machine over MCP, so a finding saved by a Gearman worker at night is available to a different agent, in a different tool, the next morning. It keeps full conversation history, not just extracted facts, so a later run can recover the reasoning and the corrections, not only the final answer. The free plan is free forever, the Pro trial runs 7 days with no card required, and memory can be exported or deleted at any time.

Gearman does its own job well: keep the queue honest, replay what never ran, and stop duplicates while they are still pending. Let it distribute the work. Give the work a memory that outlives the job, and each run stops starting empty.

Start free with Vilix AI and let the next run begin where the last one 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 Azkaban Remember Between Runs? The History Is Kept. The Reasoning Is Not.

Does Azkaban Remember Between Runs? The History Is Kept. The Reasoning Is Not. Azkaban remembers that a flow ran, when it ran, whether it succeeded, and what it printed to its logs. It does not remember what the work inside the flow learned. Each new execution starts from the project files, the schedule, and whatever parameters are handed in at launch. If a step inside that flow is an AI agent, the agent wakes up with a job definition and no past: none of the findings, decisions, or open questi

Does Apache Ignite Remember Between Runs? The Grid Holds Data. The Agent Starts Empty.

Does Apache Ignite Remember Between Runs? The Grid Holds Data. The Agent Starts Empty. Apache Ignite remembers the data placed in its caches, and with one optional setting it remembers that data across a full cluster restart. Without that setting it remembers nothing once the cluster stops. Either way, what Ignite holds is current data under keys and in tables. It does not hold a run: what a scheduled AI agent checked, concluded, or promised to do next. An automation that wakes tomorrow can que

Does Hazelcast Remember Between Runs? The Map Holds Values. The Agent Starts Empty.

Does Hazelcast Remember Between Runs? The Map Holds Values. The Agent Starts Empty. Hazelcast remembers exactly what its data structures were told to hold, for exactly as long as the cluster, a backup, or an optional persistence layer keeps them alive. An IMap entry put by one process can be read by another process seconds or days later, as long as the cluster stays up or the entry was written through to an external store. What Hazelcast never holds is a run. It stores current values under keys