(redisUrl: string, queueName: string, options?: QueueOptions)
| 8 | private redisSubscriber: IORedis |
| 9 | |
| 10 | constructor(redisUrl: string, queueName: string, options?: QueueOptions) { |
| 11 | super(queueName, options) |
| 12 | |
| 13 | this.redisBlocking = new IORedis(redisUrl) |
| 14 | this.redisNonBlocking = new IORedis(redisUrl) |
| 15 | this.redisSubscriber = new IORedis(redisUrl) |
| 16 | |
| 17 | this.listenForExpiredJobs() |
| 18 | this.checkForExpiredJobs() |
| 19 | } |
| 20 | |
| 21 | get length() { |
| 22 | return this.redisNonBlocking.zcard(this.activeJobsQueue) |
nothing calls this directly
no test coverage detected