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 retries when one request returns a 500 while waiting for results (workloads/batches/jobs) #110

Open
MatthieuMoreau0 opened this issue Feb 2, 2024 · 0 comments

Comments

@MatthieuMoreau0
Copy link
Collaborator

MatthieuMoreau0 commented Feb 2, 2024

When using the wait argument, we poll the API every couple of seconds. That polling can span over minutes (even hours).

However as of now, if a single request fails the loop is interrupted and the user receives an error message.
Transient network do happen and we wish the SDK were more resilient to them.

Let's retry a couple times (with exponential backoff) in case of 500 responses or HTTP timeouts when polling for the batch/job/workload results.

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