Closed Terit closed 1 year ago
Good catch, thanks! The docs are desperately in need of an update. I keep telling myself I want to put together a nice website and Github wiki for them, but I have never managed to find the time to do that.
As far as the infinite retries thing, I believe that's still correct for the Leaky Bucket policy.
It's still correct indeed, but it only retries for rate limit errors. If any other type of error is encountered, the error bubbles up immediately as an exception.
When I attempted to implement a global retry policy I couldn't figure out why the README's code wasn't working so I went looking for the
SmartRetryExecutionPolicy
in the codebase only to find issue #853.I've updated the README to reference the replacement policy. I didn't dig into
LeakyBucketExecutionPolicy
to see if the second statement about infinite retries still applies or not.