class documentation

class Retry(Block): (source)

Constructor: Retry(**kwargs)

View In Hierarchy

A class for creating a Retry block.

Method __init__ Initialize a Retry block.
Method allowed_fields Undocumented

Inherited from Block:

Method __getattr__ Undocumented
Method __repr__ Undocumented
Method __str__ Undocumented
Method is_field_allowed Undocumented
Method to_dict Undocumented
Method to_json Serialize to a JSON formatted string.
Instance Variable fields Undocumented
Method _replace_placeholders Undocumented
def __init__(self, **kwargs): (source)

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)
def allowed_fields(self): (source)