refactor: Workers and queues and eliminate redundant process listeners

This commit is contained in:
Faruk AYDIN
2024-12-05 03:21:50 +03:00
parent 6d15167ad9
commit 770b07179f
15 changed files with 78 additions and 76 deletions

View File

@@ -11,10 +11,6 @@ const redisConnection = {
const actionQueue = new Queue('action', redisConnection);
process.on('SIGTERM', async () => {
await actionQueue.close();
});
actionQueue.on('error', (error) => {
if (error.code === CONNECTION_REFUSED) {
logger.error(