Skip to content

Instantly share code, notes, and snippets.

@mhemrg
Created November 15, 2020 10:26
Show Gist options
  • Save mhemrg/da87a8c7fc22d19cef4b32cab74e4a31 to your computer and use it in GitHub Desktop.
Save mhemrg/da87a8c7fc22d19cef4b32cab74e4a31 to your computer and use it in GitHub Desktop.
Connecting Bull queue to Redis
BullModule.registerQueue({
name: 'sms',
redis: {
host: process.env.REDIS_HOST || 'localhost',
port: parseInt(process.env.REDIS_PORT, 10) || 6379,
password: process.env.REDIS_PASSWORD,
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment