-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: provide connection details in getting started (fixes #2838) #2897
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -25,7 +25,7 @@ const myWorker = new Worker('myqueue', async (job)=>{}, { connection: { | |||
import { Queue, Worker } from 'bullmq'; | |||
import IORedis from 'ioredis'; | |||
|
|||
const connection = new IORedis(); | |||
const connection = new IORedis({ maxRetriesPerRequest: null }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
something to take in count is that we are recommending to not add this option for producers (Queue), only for consumers (Workers). Pls change it to reflect it base on https://docs.bullmq.io/bull/patterns/persistent-connections#queue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
43a6bf5
to
8643147
Compare
This issue fixes #2838