tasks.RetryPolicy interface

How a task should be retried in the event of a non-2xx return.

Signature:

export interface RetryConfig 

Properties

Property Type Description
maxAttempts number Maximum number of times a request should be attempted. If left unspecified, will default to 3.
maxBackoffSeconds number The maximum amount of time to wait between attempts. If left unspecified will default to 1hr.
maxDoublings number The maximum number of times to double the backoff between retries. If left unspecified will default to 16.
maxRetrySeconds number Maximum amount of time for retrying failed task. If left unspecified will retry indefinitely.
minBackoffSeconds number The minimum time to wait between attempts. If left unspecified will default to 100ms.

tasks.RetryPolicy.maxAttempts

Maximum number of times a request should be attempted. If left unspecified, will default to 3.

Signature:

maxAttempts?: number;

tasks.RetryPolicy.maxBackoffSeconds

The maximum amount of time to wait between attempts. If left unspecified will default to 1hr.

Signature:

maxBackoffSeconds?: number;

tasks.RetryPolicy.maxDoublings

The maximum number of times to double the backoff between retries. If left unspecified will default to 16.

Signature:

maxDoublings?: number;

tasks.RetryPolicy.maxRetrySeconds

Maximum amount of time for retrying failed task. If left unspecified will retry indefinitely.

Signature:

maxRetrySeconds?: number;

tasks.RetryPolicy.minBackoffSeconds

The minimum time to wait between attempts. If left unspecified will default to 100ms.

Signature:

minBackoffSeconds?: number;