tomasbasham / ratelimit

API Rate Limit Decorator
MIT License
768 stars 159 forks source link

Accept arg for exponential backoff on retries #21

Closed stevenwu4 closed 6 years ago

stevenwu4 commented 6 years ago

Some APIs, like Lever, recommend/request for exponential backoff

https://hire.lever.co/developer/documentation#rate-limits

tomasbasham commented 6 years ago

This repo does not intend to implement retry strategies as there are many examples of these elsewhere. Instead you can augment the decorator (decorate the decorator). I recommend the one mentioned here https://github.com/tomasbasham/ratelimit#usage. I have used this in the past and it worked well for me. Let me know if it causes you issues