sinch.core.clients.retry_configuration module

class sinch.core.clients.retry_configuration.RetryConfiguration(
retry_policy: RetryPolicy = RetryPolicy.DEFAULT,
max_retries: int = 3,
backoff_growth: int = 4,
)[source]

Bases: object

Retry policy applied to rate-limited (HTTP 429) responses.

Parameters:
  • retry_policy (RetryPolicy) – Strategy used to compute the delay before a retry.

  • max_retries (int) – Maximum retries performed on top of the initial attempt.

  • backoff_growth (int) – Growth factor for the exponential backoff ceiling.

Raises:

ValueError – If max_retries or backoff_growth is out of range.