-
Notifications
You must be signed in to change notification settings - Fork 183
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
Resource Provisioner: add retries to network calls #326
Comments
Might also make sense to use the |
Testing /cc @mikeharder |
@heaths: Are you saying there is no good way to get more detailed information from CLI failures? |
Not using |
If I set |
Fixes Azure/azure-sdk-tools#326 by retrying login and dumping more information about why it might have failed.
* Retry account login Fixes Azure/azure-sdk-tools#326 by retrying login and dumping more information about why it might have failed. * Change initial sleep to 5s Had as 1s for testing and forgot to change it back.
Add APIVersion policy -Policy adds the service version to all requests. -Service can be set on headers or query parameters Rename boolean for clarity. Add comment describing how the boolean operates
We've seen an error on
Connect-AzAccount
in a pipeline execution where other jobs have succeeded on this call. The cause might be a transient network issue. To that end we could wrap network calls in retries with some detection of transient errors (e.g. network timeout, 5xx status code, etc.) and retry on errors that look transient.Logs of this behavior: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=234118&view=logs&jobId=42c9484e-bad6-5a7b-ceb1-abf0d427bbf2&j=42c9484e-bad6-5a7b-ceb1-abf0d427bbf2&t=05996a6a-8093-5d15-a4af-44930c1872b9
The text was updated successfully, but these errors were encountered: