Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

Message goes both to 'exceeded' and 'message' #50

Open
nicolasGab opened this issue Nov 6, 2019 · 1 comment
Open

Message goes both to 'exceeded' and 'message' #50

nicolasGab opened this issue Nov 6, 2019 · 1 comment

Comments

@nicolasGab
Copy link

I am using the RSMQ-worker package to handle messages coming from a Redis instance. Main functionalities are triggered on the 'message' event. When I fail to handle a message, it is put back in the Redis queue and the :rc (receive count) key is incremented.

When a message hits an :rc of 10, it goes to a different queue via the 'exceeded' event. The problem is that both the 'message' and the 'exceeded' events are triggered when a message has been received 10 times. This means that I am marking the failed message as up for something else while trying to process it as a normal message. If the tenth retry succeeds, the message is practically duplicated.

Is this expected behaviour? Should I insert extra conditions for exceeded messages?

@ketansp
Copy link

ketansp commented Aug 18, 2024

I can confirm this behavior. Do we know what's the problem here?

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

No branches or pull requests

2 participants