Skip to content

Commit

Permalink
fix: support redis configuration with bullmq (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
HalfdanJ authored Nov 26, 2020
1 parent 951ba92 commit ab4b806
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 ab4b806

Please sign in to comment.