MCPcopy Index your code
hub / github.com/monkeytypegame/monkeytype / init

Method init

backend/src/queues/monkey-queue.ts:22–35  ·  view source on GitHub ↗
(redisConnection?: IORedis.Redis)

Source from the content-addressed store, hash-verified

20 }
21
22 init(redisConnection?: IORedis.Redis): void {
23 if (this.jobQueue !== undefined || !redisConnection) {
24 return;
25 }
26
27 this.jobQueue = new Queue(this.queueName, {
28 ...this.queueOpts,
29 connection: redisConnection as ConnectionOptions,
30 });
31
32 this._queueScheduler = new QueueScheduler(this.queueName, {
33 connection: redisConnection as ConnectionOptions,
34 });
35 }
36
37 async add(taskName: string, task: T, jobOpts?: JobsOptions): Promise<void> {
38 if (this.jobQueue === undefined) {

Callers 8

activateSentryFunction · 0.80
ready.tsFile · 0.80
initFunction · 0.80
applyFunction · 0.80
restartFunction · 0.80
result-screen.tsFile · 0.80
updateFunction · 0.80
bootServerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected