Skip to content

Commit

Permalink
fix: support redis configuration with bullmq
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Jongejan authored and skeggse committed Nov 26, 2020
1 parent 5766a8b commit 66f2fd7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/server/queue/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ class Queues {
if (queueConfig.createClient) options.createClient = queueConfig.createClient;

const { BullMQ } = this._config;
queue = new BullMQ(name, options);
const { redis, ...rest } = options;
queue = new BullMQ(name, {
connection: redis,
...rest,
});
queue.IS_BULLMQ = true;
} else {
if (queueConfig.createClient) options.createClient = queueConfig.createClient;
Expand Down

0 comments on commit 66f2fd7

Please sign in to comment.