Skip to main content

RetryStrategy

Retry strategy for the task or task environment. Retry strategy is optional or can be a simple number of retries.

Attributes

  • count: int

    • The number of retries.
  • backoff: Union[float, timedelta, None] = None

    • The maximum backoff time for retries. This can be a float or a timedelta.
  • backoff_factor: Union[int, float, None] = None

    • The backoff exponential factor. This can be an integer or a float.

Constructors

  • Initializes the RetryStrategy with the specified retry parameters.

  • Parameters

    • count: int
      • The number of retries.
    • backoff: Union[float, timedelta, None]
      • The maximum backoff time for retries. This can be a float or a timedelta.
    • backoff_factor: Union[int, float, None]
      • The backoff exponential factor. This can be an integer or a float.