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

TX CLI pull job fails with a throttling message #229

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

foteinigk
Copy link
Contributor

@foteinigk foteinigk commented Jun 18, 2024

Add retry mechanism on the following requests (wrap the api call inside handleRetry function):

  • get resource
  • create resource
  • get language statistics
  • get all languages

Improve the Retry error message printed in the terminal

  • Include the response code at printed message
  • in case of 502, 503, 504 response codes, a retryAfter header is not included in response, we can retry after 10 seconds instead of 1.

Output example:

Screenshot 2024-06-18 at 2 52 39 PM

Copy link

@svaloumas svaloumas left a comment

Choose a reason for hiding this comment

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

🚀

@foteinigk foteinigk merged commit 3b0c3d9 into devel Jun 21, 2024
6 checks passed
@foteinigk foteinigk deleted the retry_handle_additions branch June 21, 2024 06:23
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.

None yet

2 participants