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
Retry 5xx failures #25
Comments
@janpieterz Thanks for reaching out with the suggestion! IMO we wouldn't want to do this for most of the 5xx error codes like internal server error, service unavailable, gateway timeout, etc. These are server errors and I am not sure, in the general case, that retrying will help. Most of the time I would guess that they are issues that need to be fixed on the server and that aren't resolved by waiting a little bit. @bryanmacfarlane What do you think? |
I don't think we should retry on 500 But, I wouldn't be opposed to retrying on these since they are temporary states: |
@janpieterz Would you like to make this change and do a PR? :) |
Yup, be happy to. Give me some time as I'm finishing up some things. |
We've had a couple of builds fail today because the Node tool installer returned a 502 response.
Rerunning it fixed it. It could be interesting if it fails with a 5xx response to wait a second, try again, wait 3 seconds, try again, then fail.
Relevant lines (as far as I can see):
https://github.com/Microsoft/vsts-task-tool-lib/blob/master/tool.ts#L225
Let me know if you'd appreciate this and I can make a pull request.
Relevant logs:
The text was updated successfully, but these errors were encountered: