ClusteredRedisQueue.destroy() method

Destroys every server's queue — closing their connections and removing their event listeners — then unregisters this cluster from all configured cluster managers.

Signature:

destroy(): Promise<void>;

Returns:

Promise<void>

Remarks

Unregistering shuts a manager down entirely once it has no clusters left, which for UDPClusterManager also terminates its shared UDP worker.

The instance must not be reused afterwards: internal routing state is not cleared, so a subsequent ClusteredRedisQueue.send() would silently re-open a connection.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.