> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Worker Wedged Error • AI Agent SDK

> WorkerWedgedError: Raised when a session's turn worker is wedged / unresponsive.

# WorkerWedgedError

> Defined in the [**protocols**](../modules/protocols) module.

<Badge color="blue">AI Agent</Badge>

Raised when a session's turn worker is wedged / unresponsive.

Signals the gateway that the placement's worker can no longer make
progress (a wedged loop, an unresponsive subprocess/container, a lost
remote worker). The gateway responds by tearing down *only* that
placement (:meth:`TurnExecutorProtocol.teardown`) and re-placing the
session, rather than the process-wide `os._exit` that a single shared
loop forces today. Distinct from ordinary turn errors, which surface as
the turn's own exception and do not condemn the worker.

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L5629">
  `praisonaiagents/gateway/protocols.py` at line 5629
</Card>
