8000 Implementing support for delay (retry-after on 429) · Issue #713 · typhoeus/typhoeus · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Implementing support for delay (retry-after on 429) #713

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dblock opened this issue Apr 3, 2023 · 0 comments
Open

Implementing support for delay (retry-after on 429) #713

dblock opened this issue Apr 3, 2023 · 0 comments

Comments

@dblock
Copy link
dblock commented 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 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?

@dblock dblock changed the title Implementing support for retry-after on 429 Implementing support for delay (retry-after on 429) Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0