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

Added API retry logic to better handle timeouts #38

Merged
merged 7 commits into from
Aug 26, 2022

Conversation

tmhash
Copy link
Contributor

@tmhash tmhash commented Aug 23, 2022

Description

The API will occasionally fail with timeouts, therefore, I've added retry logic (3 attempts with a 5-second delay) to let the CLI retry in situations where a retry may succeed.

What Changed

  • Added p-limit to deploy in order to concurrently upload components (max 5)
  • Added API retry logic for >500 and 408 status codes

@tommaitland tommaitland merged commit 1fe63e3 into raisely:master Aug 26, 2022
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