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

Add Retry + delay on HTTP 429 #36

Merged
merged 2 commits into from
Jul 18, 2024

Conversation

Ryrden
Copy link
Contributor

@Ryrden Ryrden commented Jul 17, 2024

Hi, as discussed at issue sinedied/publish-devto#37 I've implemented a Retry + delay for update/create articles here.

As the code already has pThrottle, I reused it too to limit the number of requests to 30 every 30 seconds as said on dev.to docs.

Now the code uses pThrottle both to Create and to Update the Article and if the request fails a retry with a max quantity of 3 retries each 1 second of delay is applied.

Could you please review @sinedied? If needed, mention the issue here about 429 too.

Copy link
Owner

@sinedied sinedied left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, looks good 👍

@sinedied sinedied merged commit 7ff10b3 into sinedied:main Jul 18, 2024
0 of 6 checks passed
Copy link

🎉 This PR is included in version 1.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants