@hastehaul/common 2.0.39 → 2.0.40

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@ class AbstractJobQueue {
14
14
  */
15
15
  constructor(queueName) {
16
16
  // Initialize the job queue with the provided name and a Redis connection from the redisWrapper.
17
- this.que = new bullmq_1.Queue(queueName, { connection: redis_connection_wrapper_1.redisWrapper.client });
17
+ this.que = new bullmq_1.Queue(queueName, { connection: redis_connection_wrapper_1.redisWrapper.client, prefix: '{BULLMQ}' });
18
18
  }
19
19
  }
20
20
  exports.AbstractJobQueue = AbstractJobQueue;
@@ -17,6 +17,7 @@ class AbstractWorker {
17
17
  this.worker = new bullmq_1.Worker(queueName, this.process.bind(this), {
18
18
  connection: redis_connection_wrapper_1.redisWrapper.client,
19
19
  autorun: false,
20
+ prefix: '{BULLMQ}',
20
21
  });
21
22
  // Handle errors that may occur during job processing.
22
23
  this.worker.on("error", (err) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hastehaul/common",
3
- "version": "2.0.39",
3
+ "version": "2.0.40",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",