@hastehaul/common 2.0.39 → 2.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -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) => {
|