attempt v0.2.0 Attempt.Retry.Budget

Defines the structure of a retry budget.

The elements of a retry budget are:

  • :tries defines the maximum number of function executions are permitted before an error is returned. The minimum is 1.

  • :token_bucket defines the token bucket used to throttle the rate of function execution

  • :backkoff_strategy defines the backoff strategy when retrying execution. Any module that implements the Attempt.Retry.Backoff behaviour. The default is Attempt.Retry.Backoff.Default

Link to this section Summary

Link to this section Types

Link to this type t()
t() :: %Attempt.Retry.Budget{backoff_strategy: module(), current_try: non_neg_integer(), last_sleep: non_neg_integer(), retry_policy: module(), timeout: non_neg_integer(), token_bucket: Attempt.Bucket.t(), tries: non_neg_integer()}