Skip to content

Commit e95778d

Browse files
authored
fix(aws): Support http/429 as a retryable status code (#1022)
Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com>
1 parent 7d9966d commit e95778d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws/logs_monitoring/lambda_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
with requests.Session() as s:
5454
retries = requests.adapters.Retry(
55-
total=5, backoff_factor=1, status_forcelist=[500, 502, 503, 504]
55+
total=5, backoff_factor=1, status_forcelist=[429, 500, 502, 503, 504]
5656
)
5757

5858
s.mount("http://", requests.adapters.HTTPAdapter(max_retries=retries))

0 commit comments

Comments
 (0)