RetryPolicy
class defines how retries should be handled for failed atoms within a workflow. It provides customizable options for retrying operations, such as setting the number of attempts, delay between retries, and handling specific exceptions.
max_attempts
(int): Maximum number of retry attempts.3
delay
(float): Initial delay in seconds between retry attempts.1.0
backoff_factor
(float): Multiplier to increase delay between each failed attempt.2.0
retry_exceptions
(tuple of exceptions): Specific exceptions on which retries are attempted. By default, retries are attempted on all exceptions (Exception
).(Exception,)
backoff_factor
.RetryPolicy
?RetryPolicy
! 🔄