ClusteredRedisQueue.queueLength() method

Returns the total number of messages waiting, summed across every redis host in the cluster.

Signature:

queueLength(): Promise<number>;

Returns:

Promise<number>

sum of the per-host queue lengths

Remarks

Resolves to 0 when the cluster has no servers, and rejects if any single host cannot be queried. As with RedisQueue.queueLength(), delayed and in-flight messages are not counted.

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