https.TaskRetryPolicy interface

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

Signature:

export interface TaskRetryConfig 

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.
minBackoffSeconds number The minimum time to wait between attempts. If left unspecified will default to 100ms.

https.TaskRetryPolicy.maxAttempts

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

Signature:

maxAttempts?: number;

https.TaskRetryPolicy.maxBackoffSeconds

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

Signature:

maxBackoffSeconds?: number;

https.TaskRetryPolicy.maxDoublings

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

Signature:

maxDoublings?: number;

https.TaskRetryPolicy.minBackoffSeconds

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

Signature:

minBackoffSeconds?: number;