Open inventhouse opened 2 years ago
While I'm here, this line: https://github.com/NerdWalletOSS/kinesis-python/blob/2bf355173de05a38f685df0f5a6000cff9a2076a/src/kinesis/consumer.py#L52
Should be (self.retries * 2) or 1
if the behavior is to (mostly) match the comment.
This code is very helpful for understanding how to work with Kinesis Data Streams - thank you!
While sifting through it, I noticed that
retries
, which controls theShardReader
's back-off is never actually incremented as far as I can tell; this line adds 1 but never saves the incremented value:https://github.com/NerdWalletOSS/kinesis-python/blob/2bf355173de05a38f685df0f5a6000cff9a2076a/src/kinesis/consumer.py#L54
This should work: