Table of Contents

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

float

InitialInterval

Gets or sets the backoff interval for the first retry. Default is 1s.

public TimeSpan InitialInterval { get; set; }

Property Value

TimeSpan

MaximumAttempts

Gets or sets the maximum number of attempts. If 0, the default, there is no maximum.

public int MaximumAttempts { get; set; }

Property Value

int

MaximumInterval

Gets or sets the maximum backoff interval between retries.

public TimeSpan? MaximumInterval { get; set; }

Property Value

TimeSpan?

NonRetryableErrorTypes

Gets or sets the collection of error types that are not retryable.

public IReadOnlyCollection<string>? NonRetryableErrorTypes { get; set; }

Property Value

IReadOnlyCollection<string>

Remarks

Refers to the ErrorType property.