tasks.RetryConfig interface Stay organized with collections Save and categorize content based on your preferences.
How a task should be retried in the event of a non-2xx return.
Signature:
exportinterfaceRetryConfigProperties
| Property | Type | Description |
|---|---|---|
| maxAttempts | number |Expression<number> | ResetValue | Maximum number of times a request should be attempted. If left unspecified, will default to 3. |
| maxBackoffSeconds | number |Expression<number> | ResetValue | The maximum amount of time to wait between attempts. If left unspecified will default to 1hr. |
| maxDoublings | number |Expression<number> | ResetValue | The maximum number of times to double the backoff between retries. If left unspecified will default to 16. |
| maxRetrySeconds | number |Expression<number> | ResetValue | Maximum amount of time for retrying failed task. If left unspecified will retry indefinitely. |
| minBackoffSeconds | number |Expression<number> | ResetValue | The 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.