Skip to content

Commit

Permalink
Switch botocore retry mode to adaptive from standard (#191)
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Yan <kevnya@amazon.com>
  • Loading branch information
yankevn and Kevin Yan authored Aug 17, 2023
1 parent d4e48ee commit 7d630d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deltacat/aws/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def _get_session_from_kwargs(input_kwargs):
def _resource(name: str, region: Optional[str], **kwargs) -> ServiceResource:
boto3_session = _get_session_from_kwargs(kwargs)

boto_config = Config(retries={"max_attempts": BOTO_MAX_RETRIES, "mode": "standard"})
boto_config = Config(retries={"max_attempts": BOTO_MAX_RETRIES, "mode": "adaptive"})
return boto3_session.resource(
name,
region,
Expand All @@ -167,7 +167,7 @@ def _client(name: str, region: Optional[str], **kwargs) -> BaseClient:
# fall back for clients without an associated resource
boto3_session = _get_session_from_kwargs(kwargs)
boto_config = Config(
retries={"max_attempts": BOTO_MAX_RETRIES, "mode": "standard"}
retries={"max_attempts": BOTO_MAX_RETRIES, "mode": "adaptive"}
)
return boto3_session.client(
name,
Expand Down

0 comments on commit 7d630d4

Please sign in to comment.