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

Cannot control message pulling from the queue #57

Open
forepick opened this issue Apr 7, 2019 · 0 comments
Open

Cannot control message pulling from the queue #57

forepick opened this issue Apr 7, 2019 · 0 comments

Comments

@forepick
Copy link

forepick commented Apr 7, 2019

I have this use case:

  • A Redis list is initialized with 3 messages '1', '2' and '3'.
  • A main function iterates forever on a redis receiver.
  • After each received message the goroutine sleeps for 30 seconds.

I would expect that after pulling a single message ('1') - two message will remain on the redis list, but instead - only the last message remains while the second message was already pulled by the redis.makeSubscriber function, and waits in the internal channel instead of in the redis list itself.

This functionality prevents from other machines pulling the message while the first is sleeping.

Is there any way to fix it?

Thanks!

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

1 participant