Skip to main content

Class RetryPolicy

The RetryPolicy.

Assembly: Taskurai.dll
Declaration
public class RetryPolicy

Properties

InitialDelaySec

The delay between retry attempts for a fixed approach or the delay on which to base calculations for a backoff-based approach. If the command provides a retryAfter response, the next retry is delayed by the duration specified by the retryAfter value. (Default: 0.8 sec, max 7 days).

Declaration
public double? InitialDelaySec { get; set; }

MaxRuns

Max task runs (-1: unlimited, 0: single execution attempt, no retry, >= 1: total number of attempts/retries).

Declaration
public int? MaxRuns { get; set; }

MaximumDelaySec

The maximum delay between retry attempts when the command doesn't provide a retryAfter response. If the service provides a retryAfter response, the next retry is delayed by the duration specified by the header value. (default 60 sec, max 7 days).

Declaration
public double? MaximumDelaySec { get; set; }

RetryMode

Method to calculate retry delays (default: Exponential).

Declaration
public RetryMode? RetryMode { get; set; }