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

SQS batch not working. #212

Open
Tumeloq opened this issue Nov 25, 2019 · 0 comments · May be fixed by #294
Open

SQS batch not working. #212

Tumeloq opened this issue Nov 25, 2019 · 0 comments · May be fixed by #294

Comments

@Tumeloq
Copy link

Tumeloq commented Nov 25, 2019

I cannot receive batch massages always getting single message at time. Sample request
Action=ReceiveMessage&Version=2012-11-05&AttributeName.1=All&MessageAttributeName.1=All&MaxNumberOfMessages=10&WaitTimeSeconds=20.

I debugged the code. gosqs.go

if app.SyncQueues.Queues[queueName].IsFIFO {
// If we got messages here it means we have not processed it yet, so get next
if app.SyncQueues.Queues[queueName].IsLocked(msg.GroupID) {
continue
}
// Otherwise lock messages for group ID
app.SyncQueues.Queues[queueName].LockGroup(msg.GroupID)
}
This runs in loop and only the first message will returned. The second iteration will execute.
if app.SyncQueues.Queues[queueName].IsLocked(msg.GroupID) {
continue
}

@Thomasvdam Thomasvdam linked a pull request Mar 15, 2024 that will close this issue
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 a pull request may close this issue.

1 participant