attempt
method.
Example:
func
- The function to execute with retry logicException
- Any exception that occurs during execution after
all retry attempts are exhaustedon_exception_types
Tuple[Type[Exception]] - Tuple of exception types that should trigger a retrystrategy
Literal[“Exponential”, “Fixed”, “Linear”] - The retry strategy to use:
"Exponential"
: Delay increases exponentially between retries"Fixed"
: Constant delay between retries"Linear"
: Delay increases linearly between retriesbase_delay
int, optional - Base delay in milliseconds between retries.retry_count
int, optional - Maximum number of retry attempts.