Class RetryPolicy
- Namespace
- Temporalio.Common
- Assembly
- Temporalio.dll
Retry policy for workflows and activities.
public record RetryPolicy : IEquatable<RetryPolicy>
- Inheritance
-
RetryPolicy
- Implements
- Inherited Members
Properties
BackoffCoefficient
Gets or sets the coefficient to multiply previous backoff interval by to get a new interval on each retry. Default is 2.0.
public float BackoffCoefficient { get; set; }
Property Value
InitialInterval
Gets or sets the backoff interval for the first retry. Default is 1s.
public TimeSpan InitialInterval { get; set; }
Property Value
MaximumAttempts
Gets or sets the maximum number of attempts. If 0, the default, there is no maximum.
public int MaximumAttempts { get; set; }
Property Value
MaximumInterval
Gets or sets the maximum backoff interval between retries.
public TimeSpan? MaximumInterval { get; set; }
Property Value
NonRetryableErrorTypes
Gets or sets the collection of error types that are not retryable.
public IReadOnlyCollection<string>? NonRetryableErrorTypes { get; set; }
Property Value
Remarks
Refers to the ErrorType property.