-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Retry requests for Python API #964
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
Conversation
@scjody I'm opting to modify the params for Currently using:
It's quite slow right now, and I may decide to lower the Any thoughts? NB currently the test fail is due to streaming failures |
Please use the timings from https://github.com/plotly/streambed/pull/10614/files unless you have some clear, well tested reasons to change them. One change that could be useful is to remove or significantly increase Regarding a 20 second minimum, I don't see any evidence to suggest that this is necessary, and your tests show that it slows things down significantly. Note that the 502 error from the Google load balancers that you're referring to is only one possible failure type for a backend request, and the "30 seconds" suggestion is to set expectations for a human so they don't become frustrated, not overall systems engineering guidance. |
Great, I didn't know this. Useful to know. |
@scjody Is there a canonical way to test if adding the retrying will reduce or completely remove the intermittent server errors from occurring? Rebuilding the tests on circle and counting the number of fails due to server errors doesn't make sense, for example. |
@Kully I wouldn't say there's a canonical way, but there are lots of ways to get more information here. One suggestion is to run the failing test in a loop on your vagrant and capture the output. Then you can analyze the output to determine how many failures vs. the total number of test runs. |
Note to self: the fact that there was a server error on the last rebuild tells me I should test the |
Addresses #949