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

Fix issue for subscriptions where prevCondition is a subscriber #5

Open
wants to merge 3 commits into
base: peakon-release-latest
Choose a base branch
from

Conversation

ozonep
Copy link

@ozonep ozonep commented Oct 14, 2024

Change

Based on this ioredis PR: redis/ioredis#1900

Problem / Why

currently, cluster's "subscriber" check is done on "condition/preCondition" object level. But "condition.subscriber" property may be a boolean, not an object. So if "subscriber" as an object exists only on "prevCondition", we will never get there. This fix makes sure we pick the first available subscriber object (if any). This might be useful for us as "bull" uses subscriptions when dealing with queues.

References

  • Jira #:ID:
  • Link to some slack message
  • Link to other related resource

@ozonep ozonep changed the base branch from main to peakon-release-latest October 14, 2024 11:43
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.

1 participant