Skip to content
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

Feat/add skip waiting connection option #3027

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

manast
Copy link
Contributor

@manast manast commented Jan 25, 2025

Why

When failing fast if the connection is not available, it is sometimes also needed to fail in the case the initial connection has not yet being stablished with Redis. More background can be found here: #995

How

We introduced a new option "skipWaitingForReady" that is by default false, to keep the old behaviour and no introduce breaking changes.

Additional Notes (Optional)

@manast manast requested review from roggervalf and fgozdz January 25, 2025 11:37
this.connection = new Connection(opts.connection, {
shared: isRedisInstance(opts.connection),
blocking: false,
skipVersionCheck: opts.skipVersionCheck,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we allow to pass skipWaitingForRead here too as flowProducer could be used to add jobs as queue class?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants