I have a rails application and I am using amazon sqs for queuing mechanism.
I am trying to create a queue with right_aws gem by setting the visibility
timeout as 60 sec for the queue. Though I am able to create queue names, it
is not applying the timeout value which I have specified while creation of
queue name. It still shows the default timeout value(i.e 30)..
In my rails initializers I am creating queue as
APP_CONFIG =
YAML.load_file(Rails.root.join('config/amazon_settings.yml'))[Rails.env]
sqs = RightAws::SqsGen2.new("ABCC","DEFG")
#creating regular and priority queues
$regular_queue = RightAws::SqsGen2::Queue.create(sqs,
'queue_reg',visibility=60)
$priority_queue =
RightAws::SqsGen2::Queue.create(sqs,'queue_pri',visibility=60)
But in the logger when I try to print the timeout attribute for both
($regular_queue and $priority_queue), it shows as "30"
Please help.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/b028c658-0e25-496d-92cf-8722b688c38a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.