You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Coming from dblock/ruby-link-checker#2 I'd like to add support for waiting on 429s for some amount of seconds.
Any kind of sleep before/after a request will block all other requests, so that doesn't seem like an option.
I think one strategy would be to hydra.queue(something, delay = ...) and reimplement dequeue to find the first entry that satisfies delay, but we would also need to block dequeue if no such item is found, and until the queue is empty.
Is there a better strategy?
The text was updated successfully, but these errors were encountered:
dblock
changed the title
Implementing support for retry-after on 429
Implementing support for delay (retry-after on 429)
Apr 3, 2023
Coming from dblock/ruby-link-checker#2 I'd like to add support for waiting on 429s for some amount of seconds.
Any kind of
sleep
before/after a request will block all other requests, so that doesn't seem like an option.I think one strategy would be to
hydra.queue(something, delay = ...)
and reimplementdequeue
to find the first entry that satisfiesdelay
, but we would also need to blockdequeue
if no such item is found, and until the queue is empty.Is there a better strategy?
The text was updated successfully, but these errors were encountered: