-
Notifications
You must be signed in to change notification settings - Fork 372
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
Fixed delays for HTTP retries rather than exponential delays #1967
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1967 +/- ##
===========================================
- Coverage 69.60% 69.59% -0.02%
===========================================
Files 85 85
Lines 11998 11993 -5
Branches 1677 1676 -1
===========================================
- Hits 8351 8346 -5
Misses 3273 3273
Partials 374 374
Continue to review full report at Codecov.
|
tests/utils/test_rest_util.py
Outdated
restutil.http_get("http://foo.bar", retry_delay=retry_delay_in_sec, max_retry=max_retry) | ||
duration = datetime.utcnow() - start_time | ||
|
||
self.assertEqual(max_retry, mock_resp.call_count, "Did not Retry the required amount of time") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be "times" in "Did not Retry the required amount of times"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (small typo)
…zure#1967)" This reverts commit 0991c3a.
Description
This PR addresses the issue where we can see upto 5mins of provisioning delay due to exponential delays in the restutil logic. Now, we will only have sequential delays. Changed the defaults to be at par with the Windows Guest Agent.
Issue #
PR information
Quality of Code and Contribution Guidelines