class documentation
A class for creating a Retry block.
| Method | __init__ |
Initialize a Retry block. |
| Method | allowed |
Undocumented |
Inherited from Block:
| Method | __getattr__ |
Undocumented |
| Method | __repr__ |
Undocumented |
| Method | __str__ |
Undocumented |
| Method | is |
Undocumented |
| Method | to |
Undocumented |
| Method | to |
Serialize to a JSON formatted string. |
| Instance Variable | fields |
Undocumented |
| Method | _replace |
Undocumented |
Initialize a Retry block.
- Args:
- error_equals (list(str)): Non-empty list of strings, which match Error Names. When a state reports an error, the interpreter scans through the retriers and, when the Error Name appears in the value of of a retrier's 'error_equals' field, implements the retry policy described in that retrier. interval_seconds (int, optional): Positive integer representing the number of seconds before the first retry attempt. (default: 1) max_attempts (int, optional): Non-negative integer representing the maximum number of retry attempts. (default: 3) backoff_rate(float, optional): A number which is the multiplier that increases the retry interval on each attempt. (default: 2.0)