Bull: Bull ignores redis database configuration

Created on 9 Oct 2017  路  2Comments  路  Source: OptimalBits/bull

export const testQueue = new Queue('test', 'redis://127.0.0.1:6379/3')

It would still use db0 instead of db3

bug help wanted

Most helpful comment

yes, I remembered that we are still parsing the url instead of sending it directly to ioredis. As a workaround you can just explicitly select the DB in a separate option:

new Queue('tests', {redis: {
  host: '127.0.0.1',
  port: 6379,
  db: 3
}});

All 2 comments

yes, I remembered that we are still parsing the url instead of sending it directly to ioredis. As a workaround you can just explicitly select the DB in a separate option:

new Queue('tests', {redis: {
  host: '127.0.0.1',
  port: 6379,
  db: 3
}});
Was this page helpful?
0 / 5 - 0 ratings

Related issues

sarneeh picture sarneeh  路  3Comments

thelinuxlich picture thelinuxlich  路  3Comments

pintocarlos picture pintocarlos  路  3Comments

chocof picture chocof  路  3Comments

weeco picture weeco  路  3Comments