Skip to content
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

[5.4] Correct implementation of SqsQueue::size #18037

Merged
merged 4 commits into from
Feb 21, 2017
Merged

[5.4] Correct implementation of SqsQueue::size #18037

merged 4 commits into from
Feb 21, 2017

Conversation

mrliptontea
Copy link

The size method for SqsQueue driver was missing the AttributeNames parameter and was reading the result from a wrong place. This PR fixes this.

See http://docs.aws.amazon.com/aws-sdk-php/v2/api/class-Aws.Sqs.SqsClient.html#_getQueueAttributes.

The only thing that I'm not entirely sure of is whether should an exception be thrown if $attributes['ApproximateNumberOfMessages'] is not set. However, my tests show that the command itself will throw an exception if requests cannot be fulfilled for any reason.

@mrliptontea mrliptontea changed the title Correct implementation of SqsQueue::size [5.4] Correct implementation of SqsQueue::size Feb 21, 2017
@taylorotwell taylorotwell merged commit 01d1460 into laravel:5.4 Feb 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants