using prefetch_count and ack'ing messages in batches

36 views
Skip to first unread message

loki77

unread,
Apr 5, 2012, 7:32:24 PM4/5/12
to carrot...@googlegroups.com
If I set a consumer up so that it has a prefetch_count of 20, is there a way I can bulk acknowledge getting those 20 messages?  All the examples I've seen with kombu show calling the ack() method on a given message, but if I ack just the last of the first 20 messages I only get one more message and the rest remain un-acked.  Any idea how to make this work?

Thanks!
Reply all
Reply to author
Forward
0 new messages