Skip to content

Commit c663eaf

Browse files
authored
[aws][fix] Retry using retrying only (#2054)
1 parent dda621f commit c663eaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/aws/fix_plugin_aws/aws_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ def get_with_retry(
185185
**kwargs: Any,
186186
) -> JsonElement:
187187
try:
188-
# 5 attempts is the default
189-
return self.call_single(aws_service, action, result_name, max_attempts=5, **kwargs)
188+
# turn off boto retry and rely on our retry handler
189+
return self.call_single(aws_service, action, result_name, max_attempts=0, **kwargs)
190190
except ClientError as e:
191191
self.__handle_client_error(e, aws_service, action, expected_errors) # might reraise the exception
192192
return None

0 commit comments

Comments
 (0)