-
-
Notifications
You must be signed in to change notification settings - Fork 288
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
Shoryuken does not respect empty_queue_fetch_delay in batch mode #568
Comments
Hi @snoopie Thanks for investigating this. It does make sense. This 👇 is probably the fix, I should have implemented in #376. def dispatch_batch(queue)
batch = @fetcher.fetch(queue, BATCH_LIMIT)
@polling_strategy.messages_found(queue.name, batch.size)
assign(queue.name, patch_batch!(batch)) if batch.any?
end Can you PR a fix? ❤️ 🙏 |
@phstc Sure thing! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am implementing a batch processor like this:
and setting empty queue fetch delay at application startup like this:
What is strange is that delay works with normal "one-message" processors, but not when I set it to batch mode.
Is it some kind of a bug? If so, where should I look for the code which needs to be fixed?
Thanks!
📌
#569The text was updated successfully, but these errors were encountered: