-
-
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
Per-queue receive_message parameter specification #265
Comments
@mariokostelac is working in a PR #236 to decouple the fetcher, which might allow a specific fetcher to support your needs. In the current code, it isn't supported. Why do you need long polling |
I just used |
@cjlarose if you want to set visibility timeout per queue, you need to set directly into your queues, Shoryuken does not create or change queues visibility timeout. The maximum what Shoryuken does is to extend the visibility timeout per message, when it's configured to. Basically, what you configure in |
I'm not sure you understand what I'm trying to do. I'm not suggesting Shoryuken create queues or modify queue attributes. I understand that these features are outside of the scope of Shoryuken. The SQS |
Hi @cjlarose I see your point. That might be possible with the custom fetcher in #236, not with the current implementation. With the current implementation, the maximum you can do, is to write a middleware similar to this one to change the visibility on a message basis, or change it in your
You can change a queue visibility using |
I'm interested in being able to specify different options for the calls to
receive_message
, but on a per-queue basis. Right now, it seems possible to define those options globally, but it would be very useful for me to be able to, for example, set thevisibility_timeout
on thereceive_message
calls to a different value depending on the queue.Currently, you can set the
wait_time_seconds
for allreceive_message
calls to the same value:Here's an example of what per-queue
receive_message
configuration might look like. Adding anything additional to thequeues
arrays might look awkward, so a new queue configuration format using hashes might be more appropriate:I think these changes can be made in a backward-compatible way and that the behavior of specifying global receive_message options which can be overridden on a per-queue basis is natural. Would a pull request with these changes be welcome?
The text was updated successfully, but these errors were encountered: