Sha256: 616b407fc2491081fed2d2e8d374333b46d704d8cb8fec78fc4b9858f7edcb8c

Contents?: true

Size: 749 Bytes

Versions: 65

Compression:

Stored size: 749 Bytes

Contents

module Aws
  module DynamoDB
    module Plugins
      class ExtendedRetries < Seahorse::Client::Plugin

        option(:retry_limit,
          default: 10,
          required: false,
          doc_type: Integer,
          docstring: <<-DOCS)
The maximum number of times to retry failed requests.  Only
~ 500 level server errors and certain ~ 400 level client errors
are retried.  Generally, these are throttling errors, data
checksum errors, networking errors, timeout errors and auth
errors from expired credentials.
          DOCS

        option(:retry_backoff, default: lambda { |context|
          if context.retries > 1
            Kernel.sleep(50 * (2 ** (context.retries - 1)) / 1000.0)
          end
        })

      end
    end
  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
aws-sdk-dynamodb-1.49.1 lib/aws-sdk-dynamodb/plugins/extended_retries.rb
aws-sdk-dynamodb-1.48.0 lib/aws-sdk-dynamodb/plugins/extended_retries.rb
aws-sdk-dynamodb-1.47.0 lib/aws-sdk-dynamodb/plugins/extended_retries.rb
aws-sdk-dynamodb-1.46.1 lib/aws-sdk-dynamodb/plugins/extended_retries.rb
aws-sdk-dynamodb-1.46.0 lib/aws-sdk-dynamodb/plugins/extended_retries.rb
aws-sdk-dynamodb-1.45.0 lib/aws-sdk-dynamodb/plugins/extended_retries.rb
aws-sdk-dynamodb-1.44.0 lib/aws-sdk-dynamodb/plugins/extended_retries.rb
aws-sdk-dynamodb-1.43.0 lib/aws-sdk-dynamodb/plugins/extended_retries.rb
aws-sdk-dynamodb-1.42.0 lib/aws-sdk-dynamodb/plugins/extended_retries.rb
aws-sdk-dynamodb-1.41.0 lib/aws-sdk-dynamodb/plugins/extended_retries.rb
aws-sdk-dynamodb-1.40.0 lib/aws-sdk-dynamodb/plugins/extended_retries.rb
aws-sdk-dynamodb-1.39.0 lib/aws-sdk-dynamodb/plugins/extended_retries.rb
aws-sdk-dynamodb-1.38.0 lib/aws-sdk-dynamodb/plugins/extended_retries.rb
aws-sdk-dynamodb-1.37.0 lib/aws-sdk-dynamodb/plugins/extended_retries.rb
aws-sdk-dynamodb-1.36.0 lib/aws-sdk-dynamodb/plugins/extended_retries.rb
aws-sdk-dynamodb-1.35.0 lib/aws-sdk-dynamodb/plugins/extended_retries.rb
aws-sdk-dynamodb-1.34.0 lib/aws-sdk-dynamodb/plugins/extended_retries.rb
aws-sdk-dynamodb-1.33.0 lib/aws-sdk-dynamodb/plugins/extended_retries.rb
aws-sdk-dynamodb-1.32.0 lib/aws-sdk-dynamodb/plugins/extended_retries.rb
aws-sdk-dynamodb-1.31.0 lib/aws-sdk-dynamodb/plugins/extended_retries.rb