Forum: Ruby on Rails visibility timeout issue in right_aws gem

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.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.