Ability to backoff with an exact duration
Created by: moltar
Feature Request
Use Case
I am legally scraping an API that is throttled. Once I reach the limit, API announces via HTTP headers when the usage resets. I'd like to be able to delay the job until that time passes instead of some arbitrary number of seconds.
Solution Discussion
Not sure how the API would look like, since there is only the rejection triggers the repeat. I was thinking maybe a special instance of rejection error that could then be passed to the backoff strategy.
Or even just pass any error to the backoff strategy.