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

Fix miss handling empty batch fetches #376

Merged
merged 2 commits into from
Jun 2, 2017
Merged

Conversation

phstc
Copy link
Collaborator

@phstc phstc commented Jun 2, 2017

Fix #375

@phstc phstc force-pushed the hotfix/fix-batch-delete-375 branch 3 times, most recently from 26a003c to 1d7f8c2 Compare June 2, 2017 17:30
@@ -98,7 +98,8 @@ def assign(queue, sqs_msg)
end

def dispatch_batch(queue)
batch = @fetcher.fetch(queue, BATCH_LIMIT)
return if (batch = @fetcher.fetch(queue, BATCH_LIMIT)).none?
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dotpyfe ☝️ was the issue, it was trying to assign/process/delete all that stuff for empty batches.

@phstc phstc force-pushed the hotfix/fix-batch-delete-375 branch from 1d7f8c2 to 49c081f Compare June 2, 2017 17:36
@phstc phstc force-pushed the hotfix/fix-batch-delete-375 branch from 49c081f to 3aa91e5 Compare June 2, 2017 17:36
@phstc phstc merged commit d7fa44c into master Jun 2, 2017
@phstc phstc deleted the hotfix/fix-batch-delete-375 branch June 2, 2017 17:58
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.

1 participant