tasks.RetryConfig interface

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

Signature:

exportinterfaceRetryConfig

Properties

PropertyTypeDescription
maxAttemptsnumber |Expression<number> | ResetValueMaximum number of times a request should be attempted. If left unspecified, will default to 3.
maxBackoffSecondsnumber |Expression<number> | ResetValueThe maximum amount of time to wait between attempts. If left unspecified will default to 1hr.
maxDoublingsnumber |Expression<number> | ResetValueThe maximum number of times to double the backoff between retries. If left unspecified will default to 16.
maxRetrySecondsnumber |Expression<number> | ResetValueMaximum amount of time for retrying failed task. If left unspecified will retry indefinitely.
minBackoffSecondsnumber |Expression<number> | ResetValueThe minimum time to wait between attempts. If left unspecified will default to 100ms.

tasks.RetryConfig.maxAttempts

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

Signature:

maxAttempts?:number|Expression<number>|ResetValue;

tasks.RetryConfig.maxBackoffSeconds

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

Signature:

maxBackoffSeconds?:number|Expression<number>|ResetValue;

tasks.RetryConfig.maxDoublings

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

Signature:

maxDoublings?:number|Expression<number>|ResetValue;

tasks.RetryConfig.maxRetrySeconds

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

Signature:

maxRetrySeconds?:number|Expression<number>|ResetValue;

tasks.RetryConfig.minBackoffSeconds

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

Signature:

minBackoffSeconds?:number|Expression<number>|ResetValue;

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2023-04-24 UTC.