chore: Update BullMQ version to 3.0.0
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
"ajv-formats": "^2.1.1",
|
||||
"axios": "0.24.0",
|
||||
"bcrypt": "^5.0.1",
|
||||
"bullmq": "^1.76.1",
|
||||
"bullmq": "^3.0.0",
|
||||
"copyfiles": "^2.4.1",
|
||||
"cors": "^2.8.5",
|
||||
"crypto-js": "^4.1.1",
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import process from 'process';
|
||||
import { Queue, QueueScheduler } from 'bullmq';
|
||||
import { Queue } from 'bullmq';
|
||||
import redisConfig from '../config/redis';
|
||||
import logger from '../helpers/logger';
|
||||
|
||||
@@ -10,10 +10,9 @@ const redisConnection = {
|
||||
};
|
||||
|
||||
const flowQueue = new Queue('flow', redisConnection);
|
||||
const queueScheduler = new QueueScheduler('flow', redisConnection);
|
||||
|
||||
process.on('SIGTERM', async () => {
|
||||
await queueScheduler.close();
|
||||
await flowQueue.close();
|
||||
});
|
||||
|
||||
flowQueue.on('error', (err) => {
|
||||
|
Reference in New Issue
Block a user