ClusteredRedisQueue.unsubscribe() method

Unsubscribes from the channel on every redis host and forgets every remembered handler, so servers joining later are no longer subscribed automatically.

Signature:

unsubscribe(): Promise<void>;

Returns:

Promise<void>

Remarks

Resolves without effect on an empty cluster.

Clears the remembered channel and handlers immediately, then queues each host's teardown behind its current subscription work. A stalled operation on that host therefore also stalls unsubscribe(). Later catch-up reads the cluster's installation count after teardown, even if an earlier run temporarily installed handlers from the replacement list.

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