Retry Settings¶
Retry settings that are applied to tasks in case of failure
- class qarnot.retry_settings.RetrySettings(maxTotalRetries: Optional[int] = None, maxPerInstanceRetries: Optional[int] = None)[source]¶
Bases:
object
Represents task retry settings.
- __init__(maxTotalRetries: Optional[int] = None, maxPerInstanceRetries: Optional[int] = None)[source]¶
Create a new
RetrySettings
.If neither
maxTotalRetries
normaxPerInstanceRetries
are set (or if they are equal to 0), the instances will not retry. If bothmaxTotalRetries
andmaxPerInstanceRetries
are set, then the most restrictive applies.