Forum: Ruby on Rails visibility timeout issue in right_aws gem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
881a236ca533281bb9c9ac92f380b5a0?d=identicon&s=25 prabhu (Guest)
on 2014-06-23 07:58
(Received via mailing list)
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.
This topic is locked and can not be replied to.