Skip to content

Commit a562137

Browse files
authored
refactor(queue): remove logging from queue service's destroy method (#3429)
- Eliminate logging statements during the closure of queues and workers - Streamline the onModuleDestroy method for better clarity
1 parent 8244afb commit a562137

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

services/workflows-service/src/common/queue/queue.service.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,6 @@ export class QueueService implements OnModuleDestroy {
243243
}
244244

245245
async onModuleDestroy() {
246-
this.logger.log('Closing all queues and workers');
247-
248246
const workerClosePromises = Array.from(this.workers.values()).map(worker =>
249247
worker.close().catch(err => this.logger.error(`Error closing worker`, { err })),
250248
);
@@ -261,7 +259,5 @@ export class QueueService implements OnModuleDestroy {
261259
.catch(err => this.logger.error(`Error closing Redis connection`, { err }));
262260
this.redisClient = null;
263261
}
264-
265-
this.logger.log('All queues and workers closed');
266262
}
267263
}

0 commit comments

Comments
 (0)