> ## 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**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) module.

AI Agent

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] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L7519)
>
> `praisonaiagents/gateway/protocols.py` at line 7519


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.