MCPcopy Create free account
hub / github.com/WebDevSimplified/job-queue / constructor

Method constructor

src/job-queue/redis-adapter.ts:10–19  ·  view source on GitHub ↗
(redisUrl: string, queueName: string, options?: QueueOptions)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 2

listenForExpiredJobsMethod · 0.95
checkForExpiredJobsMethod · 0.95

Tested by

no test coverage detected