Comments (4)
handle_batch
should always return all messages it receives, I will update the docs to make this clear. For changing the ack behaviour on failure, see #17.
from broadway_sqs.
Hey Jose, thanks for the quick answer. But you got me even more confused now :)
Say i am processing a batch of 10 messages but i don't like message number 9 for some reason and don't want to ack that one (i.e. want it to go to the error queue after the redrive policy count is reached). How do i proceed in that case? Still return the 10 messages in handle_batch but modify the one that i want failed in some way?
Thanks again!
from broadway_sqs.
Ok, my bad. I should mark it as failed: https://hexdocs.pm/broadway/Broadway.Message.html#failed/2
from broadway_sqs.
Np! I have added a warning if you happen to return less messages too.
from broadway_sqs.
Related Issues (20)
- `queue_url` & region config HOT 2
- Add client options for configuring a connection pool HOT 2
- Error reporting/handling? (Acknowledgement silent errors!) HOT 3
- handle_failed does not ack messages HOT 1
- Application fails to start with badarg, :ets :match HOT 3
- Document wildcard support for `message_attribute_names` HOT 2
- AWS.SimpleQueueService.BatchEntryIdsNotDistinct HOT 6
- Add integration tests with bypass to Amazon SQS
- Dependency on ex_aws_sqs HOT 2
- Use a local SQS instance HOT 9
- Producer would sometimes send messages into the void HOT 1
- AWS.SimpleQueueService.BatchEntryIdsNotDistinct HOT 17
- Process Single Batch of Messages in Parallel HOT 3
- SQS Partitioning Unexpected Behavior HOT 7
- SQS producer stops getting new messages after a minute of application start HOT 1
- Move to Finch
- Tests failing on updated nimble_options version HOT 1
- AWS SQS FIFO messages being processed out of order or in duplicate HOT 7
- Add opts.queue_url to the error message trying to receive messages
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from broadway_sqs.