# What Happens When an Agent Crashes Mid-Task

**URL:** <https://community.solace.com/t/what-happens-when-an-agent-crashes-mid-task/5028>\
**Category:** Solace Agent Mesh\
**Created:** [December 3, 2026, 8:00pm UTC](https://community.solace.com/t/what-happens-when-an-agent-crashes-mid-task/5028 "2026-12-03T20:00:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tamimi](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/tamimi/32/2190_2.png) [@Tamimi](https://community.solace.com/u/Tamimi)\
**Post date:** [December 3, 2026, 8:00pm UTC](https://community.solace.com/t/what-happens-when-an-agent-crashes-mid-task/5028/1 "2026-12-03T20:00:03Z")

</div>

The question I ask of any agentic system is simple: when the process dies, where does the work go?

In Agent Mesh, the answer is a queue on the event broker. Every request to an agent lands on a durable queue named after it:

```plaintext
<namespace>/q/a2a/<agentName> all requests to one agent
<namespace>/q/str/<workerID> tool calls for one Secure Tool Runtime worker role

```

These queues are non-exclusive. When you run three replicas of an agent, all three bind to the same queue, and the broker hands each message to exactly one of them. If a replica dies holding a message it never acknowledged, the broker redelivers it to one that’s still running.

The same mechanism handles scaling. Adding a replica means binding one more consumer to the queue. There’s no leader election and no service discovery to set up, and a rolling upgrade loses nothing.

Not every message is queued, and the docs say why. Responses from a peer agent come back on a direct subscription, because the state that matches a response to its pending call lives in the memory of one specific pod. Only that pod can act on it.

You can still see the queue-per-agent layout locally: [download the Solace Agent Mesh desktop app](https://solace.com/products/agent-mesh/) and every agent you create gets the same addressing it would have in production.

Docs:  
[The Event-Driven Mesh](https://docs.solace.com/Agent-Mesh/Framework/concepts/event-driven-mesh.htm)  
[The Event Mesh Communication Layer](https://docs.solace.com/Agent-Mesh/Framework/administering/event-driven-mesh.htm)

How are you handling a crashed agent today: a retry from the client, or redelivery from the infrastructure?
