# Class RetryPolicy (1.21.0)

1.21.0 (latest) 1.20.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.3 1.14.0 1.13.2 1.12.0 1.11.5 1.10.0 1.9.2 1.8.1 1.7.0 1.6.3 1.5.1 1.4.2 1.3.0 1.2.1 1.1.0 1.0.2 0.2.4 0.1.0

    RetryPolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The retry policy configuration for the Pipeline. The pipeline
exponentially backs off in case the destination is non responsive or
returns a retryable error code. The default semantics are as
follows: The backoff starts with a 5 second delay and doubles the
delay after each failed attempt (10 seconds, 20 seconds, 40 seconds,
etc.). The delay is capped at 60 seconds by default. Please note
that if you set the min_retry_delay and max_retry_delay fields to
the same value this will make the duration between retries constant.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `max_attempts` | `int` Optional. The maximum number of delivery attempts for any message. The value must be between 1 and 100. The default value for this field is 5. |
| `min_retry_delay` | `google.protobuf.duration_pb2.Duration` Optional. The minimum amount of seconds to wait between retry attempts. The value must be between 1 and 600. The default value for this field is 5. |
| `max_retry_delay` | `google.protobuf.duration_pb2.Duration` Optional. The maximum amount of seconds to wait between retry attempts. The value must be between 1 and 600. The default value for this field is 60. |