Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/server/lifecycle/queue-lifecycle.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ export class QueueLifecycle implements OnModuleDestroy {
private readonly logger = new Logger(QueueLifecycle.name)

constructor(
private readonly workers: WorkerRegistry,
private readonly events: QueueEventsRegistry,
private readonly queues: QueueService,
private readonly flow: FlowService,
private readonly connection: ConnectionResolver,
@Inject(WorkerRegistry) private readonly workers: WorkerRegistry,
@Inject(QueueEventsRegistry) private readonly events: QueueEventsRegistry,
@Inject(QueueService) private readonly queues: QueueService,
@Inject(FlowService) private readonly flow: FlowService,
@Inject(ConnectionResolver) private readonly connection: ConnectionResolver,
@Inject(BYMAX_QUEUE_RESOLVED_OPTIONS) private readonly resolved: ResolvedQueueOptions,
) {}

Expand Down
8 changes: 4 additions & 4 deletions src/server/services/processor-discovery.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @layer server/services
*/

import { Injectable, Logger, type OnModuleInit } from '@nestjs/common'
import { Inject, Injectable, Logger, type OnModuleInit } from '@nestjs/common'
import { DiscoveryService } from '@nestjs/core'
import type { Job } from 'bullmq'
import { WorkerRegistry } from './worker-registry.service'
Expand Down Expand Up @@ -61,9 +61,9 @@ export class ProcessorDiscoveryService implements OnModuleInit {
private readonly registeredQueues = new Set<string>()

constructor(
private readonly discovery: DiscoveryService,
private readonly workers: WorkerRegistry,
private readonly events: QueueEventsRegistry,
@Inject(DiscoveryService) private readonly discovery: DiscoveryService,
@Inject(WorkerRegistry) private readonly workers: WorkerRegistry,
@Inject(QueueEventsRegistry) private readonly events: QueueEventsRegistry,
) {}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/server/services/queue-events-registry.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @layer server/services
*/

import { Injectable } from '@nestjs/common'
import { Inject, Injectable } from '@nestjs/common'
import { QueueEvents } from 'bullmq'
import type { Redis } from 'ioredis'
import { ConnectionResolver } from './connection-resolver.service'
Expand All @@ -34,7 +34,7 @@ export class QueueEventsRegistry {
private readonly events = new Map<string, QueueEvents>()
private readonly connections = new Map<string, Redis>()

constructor(private readonly connection: ConnectionResolver) {}
constructor(@Inject(ConnectionResolver) private readonly connection: ConnectionResolver) {}

/**
* Returns the cached `QueueEvents` for `queueName`, creating one on first
Expand Down
2 changes: 1 addition & 1 deletion src/server/services/queue.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class QueueService implements OnModuleDestroy {
private readonly queues = new Map<string, Queue>()

constructor(
private readonly connection: ConnectionResolver,
@Inject(ConnectionResolver) private readonly connection: ConnectionResolver,
@Inject(BYMAX_QUEUE_RESOLVED_OPTIONS) private readonly options: ResolvedQueueOptions,
) {}

Expand Down
2 changes: 1 addition & 1 deletion src/server/services/worker-registry.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class WorkerRegistry {
private readonly entries = new Map<string, WorkerEntry>()

constructor(
private readonly connection: ConnectionResolver,
@Inject(ConnectionResolver) private readonly connection: ConnectionResolver,
@Inject(BYMAX_QUEUE_RESOLVED_OPTIONS) private readonly options: ResolvedQueueOptions,
) {}

Expand Down
Loading