Created
November 15, 2020 10:26
-
-
Save mhemrg/da87a8c7fc22d19cef4b32cab74e4a31 to your computer and use it in GitHub Desktop.
Connecting Bull queue to Redis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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