MCPcopy Create free account
hub / github.com/actionhero/node-resque / length

Method length

src/core/queue.ts:202–204  ·  view source on GitHub ↗

* - length is an integer counting the length of the jobs in the queue * - this does not include delayed jobs for this queue

(q: string)

Source from the content-addressed store, hash-verified

200 * - this does not include delayed jobs for this queue
201 */
202 async length(q: string) {
203 return this.connection.redis.llen(this.connection.key("queue", q));
204 }
205
206 /**
207 * - jobs are deleted by those matching a `func` and argument collection within a given queue.

Callers 8

ioredis.tsFile · 0.80
ioredis-mock.tsFile · 0.80
queue.tsFile · 0.80
queueLock.tsFile · 0.80
noop.tsFile · 0.80
custom_plugins.tsFile · 0.80
retry.tsFile · 0.80

Calls 1

keyMethod · 0.45

Tested by

no test coverage detected