From 35e3590d7e8f1e201b9ffbe84f63277d2090a5a1 Mon Sep 17 00:00:00 2001 From: Alina Buzachis Date: Fri, 23 Apr 2021 19:38:34 +0200 Subject: [PATCH] * Add jittered_backoff Signed-off-by: Alina Buzachis --- plugins/modules/aws_s3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/modules/aws_s3.py b/plugins/modules/aws_s3.py index df452188fe7..815291d0073 100644 --- a/plugins/modules/aws_s3.py +++ b/plugins/modules/aws_s3.py @@ -731,12 +731,12 @@ def get_current_object_tags_dict(s3, bucket, obj): return boto3_tag_list_to_ansible_dict(current_tags) -@AWSRetry.exponential_backoff(max_delay=120, catch_extra_error_codes=['NoSuchBucket', 'OperationAborted']) +@AWSRetry.jittered_backoff(max_delay=120, catch_extra_error_codes=['NoSuchBucket', 'OperationAborted']) def put_object_tagging(s3, bucket, obj, tags): s3.put_object_tagging(Bucket=bucket, Key=obj, Tagging={'TagSet': ansible_dict_to_boto3_tag_list(tags)}) -@AWSRetry.exponential_backoff(max_delay=120, catch_extra_error_codes=['NoSuchBucket', 'OperationAborted']) +@AWSRetry.jittered_backoff(max_delay=120, catch_extra_error_codes=['NoSuchBucket', 'OperationAborted']) def delete_object_tagging(s3, bucket, obj): s3.delete_object_tagging(Bucket=bucket, Key=obj)