def aws_request_limit_retry(fn):
    'A decorator for retrying an AWS operation after exceeding request limit. Does retries with\n    randomized jitter. Ideally, we should reconfigure boto3 to do the right kind of retries\n    internally, but as of May 2017 there does not seem to be a good way of doing that.\n\n    Initially not adding this decorator to all functions in this module. This should be done\n    gradually as we encounter rate limiting errors.\n\n    Relevant boto issues:\n\n    https://github.com/boto/boto3/issues/770\n    https://github.com/boto/botocore/issues/882\n    '
    return request_retry_decorator(fn, aws_exception_handler)
A decorator for retrying an AWS operation after exceeding request limit. Does retries with
randomized jitter. Ideally, we should reconfigure boto3 to do the right kind of retries
internally, but as of May 2017 there does not seem to be a good way of doing that.

Initially not adding this decorator to all functions in this module. This should be done
gradually as we encounter rate limiting errors.

Relevant boto issues:

https://github.com/boto/boto3/issues/770
https://github.com/boto/botocore/issues/882
def aws_request_limit_retry(fn):
    'A decorator for retrying an AWS operation after exceeding request limit. Does retries with\n    randomized jitter. Ideally, we should reconfigure boto3 to do the right kind of retries\n    internally, but as of May 2017 there does not seem to be a good way of doing that.\n\n    Initially not adding this decorator to all functions in this module. This should be done\n    gradually as we encounter rate limiting errors.\n\n    Relevant boto issues:\n\n    https://github.com/boto/boto3/issues/770\n    https://github.com/boto/botocore/issues/882\n    '
    return request_retry_decorator(fn, aws_exception_handler)