Closed NetwarSystem closed 2 years ago
I'm afraid there's probably more to this issue than what's in your code, how are you declaring the connection and channel? My guess is your app is exiting before the TCP buffer is fully flushed.
If you're not using a context manager for the connection, you might want to give that a try.
If I do this with 10,000 items:
And then do this to retrieve the data:
I consistently get back 9,999 items. I understand that this is not the right way and that it is desirable to "consume" rather than "get", but the RabbitMQ In Depth Book is a treasure, and this library should function correctly. I'm digging in with PyCharm, will post my findings, and a patch if I figure out how to fix it.