Skip to content

Commit

Permalink
Merge pull request #438 from jonmast/fix-bull-url-config
Browse files Browse the repository at this point in the history
Update how Redis URL is passed to Bull
  • Loading branch information
bradvogel authored Sep 8, 2021
2 parents 3d941e3 + 81bf488 commit ddf5048
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/server/queue/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,14 @@ class Queues {
if (queueConfig.createClient)
options.createClient = queueConfig.createClient;

if (typeof options.redis === 'string') delete options.redis;

const {Bull} = this._config;
queue = new Bull(name, options);
if (url) {
queue = new Bull(name, url, options);
} else {
queue = new Bull(name, options);
}
queue.IS_BULL = true;
}

Expand Down

0 comments on commit ddf5048

Please sign in to comment.