Skip to content
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

Convert retry-after header string to seconds #1345

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

ruionweb
Copy link
Contributor

@ruionweb ruionweb commented Apr 18, 2024

Retry header returns a string. Convert it to an int and then seconds. Following this: https://api.rubyonrails.org/v4.2.5/classes/ActiveJob/Enqueuing.html guide

Retry header is the number seconds: https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28#exceeding-the-rate-limit

@ruionweb ruionweb merged commit 8c35118 into main Apr 18, 2024
21 checks passed
@ruionweb ruionweb deleted the rdj/convert-wait-string-to_i branch April 18, 2024 15:32
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

Successfully merging this pull request may close these issues.

2 participants