Skip to content

Commit

Permalink
Merge pull request #129 from SAP/general_resilience
Browse files Browse the repository at this point in the history
General resilience
  • Loading branch information
mhaas authored Jun 17, 2022
2 parents 68cf17a + 16aa372 commit 07e05fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
because the special error response object will have a value of `None` for the `labels` key.
As this project is still versioned below 1.0.0, the breaking API change does not warrant a major version update.
See [#128] for details.
* Improve reliability by tweaking retry configuration [#129]

[#128]: https://github.com/SAP/data-attribute-recommendation-python-sdk/pull/128
[#129]: https://github.com/SAP/data-attribute-recommendation-python-sdk/pull/129

## [0.11.0]

Expand Down Expand Up @@ -266,7 +268,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

* First public release

[Unreleased]: https://github.com/SAP/data-attribute-recommendation-python-sdk/compare/rel/0.10.0...HEAD
[Unreleased]: https://github.com/SAP/data-attribute-recommendation-python-sdk/compare/rel/0.12.0...HEAD
[0.11.0]: https://github.com/SAP/data-attribute-recommendation-python-sdk/compare/rel/0.11.0...rel/0.12.0
[0.11.0]: https://github.com/SAP/data-attribute-recommendation-python-sdk/compare/rel/0.10.0...rel/0.11.0
[0.10.0]: https://github.com/SAP/data-attribute-recommendation-python-sdk/compare/rel/0.9.2...rel/0.10.0
[0.9.2]: https://github.com/SAP/data-attribute-recommendation-python-sdk/compare/rel/0.9.1...rel/0.9.2
Expand Down
4 changes: 2 additions & 2 deletions sap/aibus/dar/client/util/http_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

CONNECT_TIMEOUT = 240

NUM_REQUEST_RETRIES = 5 # total number of request retries
NUM_REQUEST_RETRIES = 7 # total number of request retries


class HttpMethodsProtocol(Protocol):
Expand Down Expand Up @@ -162,7 +162,7 @@ def __init__(
self,
num_retries: int,
session: Session = None,
backoff_factor: float = 0.03,
backoff_factor: float = 0.05,
status_forcelist: Tuple = (413, 429, 500, 502, 503, 504),
):
"""
Expand Down

0 comments on commit 07e05fe

Please sign in to comment.