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

fix(retries): change default retry_interval to 1 second (was 0.1) #122

Merged
merged 1 commit into from
Aug 20, 2021

Conversation

padamstx
Copy link
Member

This commit changes the default value of the retry_interval
parameter (in the BaseService.enable_retries method) from 0.1
to 1.0. This will result in default retry intervals
of 1, 2, 4, 8, ... seconds instead of 0.1, 0.2, 0.4, 0.8, ... seconds.
This change will align the python core retry support with Go.
Also added some detailed info in the docstring for the method as well.

This commit changes the default value of the retry_interval
parameter (in the BaseService.enable_retries method) from 0.1
to 1.0.   This will result in default retry intervals
of 1, 2, 4, 8, ... seconds instead of 0.1, 0.2, 0.4, 0.8, ... seconds.
This change will align the python core retry support with Go.
Also added some detailed info in the docstring for the method as well.
@padamstx padamstx requested a review from rmkeezer August 20, 2021 14:45
@codecov
Copy link

codecov bot commented Aug 20, 2021

Codecov Report

Merging #122 (96412af) into main (a15df4b) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #122   +/-   ##
=======================================
  Coverage   99.50%   99.50%           
=======================================
  Files          22       22           
  Lines         815      815           
=======================================
  Hits          811      811           
  Misses          4        4           
Impacted Files Coverage Δ
ibm_cloud_sdk_core/base_service.py 99.47% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a15df4b...96412af. Read the comment docs.

Copy link
Contributor

@rmkeezer rmkeezer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@padamstx padamstx merged commit 3daef00 into main Aug 20, 2021
@padamstx padamstx deleted the retry_interval_default branch August 20, 2021 16:14
ibm-devx-sdk pushed a commit that referenced this pull request Aug 20, 2021
## [3.11.2](v3.11.1...v3.11.2) (2021-08-20)

### Bug Fixes

* **retries:** change default retry_interval to 1 second (was 0.1) ([#122](#122)) ([3daef00](3daef00))
@ibm-devx-sdk
Copy link

🎉 This PR is included in version 3.11.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants