View Source Elsa.RetryConfig (Elsa.fi v3.1.0)

Simple struct for metadata request configuration, with function to provide defaults

Link to this section Summary

Functions

Decrement the tries field by 1

Generate a struct from a keyword list with :tries and :dwell_ms. Both keyword list entries are optional, and will be substituded with defaults if missing. Default tries: 5 Default dwell_ms: 100

Return a retry config that doesn't retry at all

Link to this section Types

@type t() :: %Elsa.RetryConfig{dwell_ms: term(), tries: term()}

Link to this section Functions

@spec decrement(t()) :: t()

Decrement the tries field by 1

@spec new(keyword()) :: t()

Generate a struct from a keyword list with :tries and :dwell_ms. Both keyword list entries are optional, and will be substituded with defaults if missing. Default tries: 5 Default dwell_ms: 100

@spec no_retry() :: t()

Return a retry config that doesn't retry at all