klarna / bec

The BitBucket Erlang Client
Apache License 2.0
47 stars 12 forks source link

Retry when rate-limited #64

Closed jesperes closed 1 year ago

jesperes commented 1 year ago

Algorithm is taken from this AWS blog post.

jesperes commented 1 year ago

LGTM even though I'd personally add a max_retries configuration in order to not get stuck in some CI pipeline forever if there's 429's consistently. But if you feel that there's no need and you'd prefer to retry forever then I'm fine with that too +1

I'll add a max_retries config.