-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
SQS client.receive_messages hangs when WaitTimeSeconds is not set #968
Comments
Perhaps changing linee 346 to:
|
@JackDanger Wanted to contact you direct but this will have to suffice, I noticed that when I upgraded to version 1.0.0 of Moto, that tests are hitting AWS direct (SQS and SNS). I confirmed this by rolling back to 0.4.31 and master branch from github. I will look into this further, but I'd imagine this is not expected |
@Brett55 That's a known but under-publicized change of Moto 1.0. What you need to do is replace |
Thanks for response, okay, that makes sense. It seems that moto 0.4.31
works with both boto 2 and 3 and moto 1.0.0 you must be explicit on
@mock_sqs vs @mock_sqs_deprecated?
…On Fri, Jun 2, 2017 at 4:12 PM, Jack Danger ***@***.***> wrote:
@Brett55 <https://github.com/brett55> That's a known but under-publicized
change of Moto 1.0. What you need to do is replace @mock_sqs with
@mock_sqs_deprecated (and same for other service) everywhere that Boto is
used. @mock_sqs is now only for Boto3 support.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#968 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AGsE2T3-IpR8wrtKaryq9ZO3CN5ho8I8ks5sAIjUgaJpZM4NsVic>
.
|
@Brett55 That's correct. |
Using version 1.0.0
I've found that with SQS client, calling client.receive_message() without WaitTimeSeconds param causes the statement to hang for a 5-10 mins before returning None. If I supply any WaitTimeSeconds param such as "20" it works fine.
Seems to related to this block https://github.com/spulec/moto/blob/master/moto/sqs/models.py#L346-L352
The text was updated successfully, but these errors were encountered: