QueueRetryConfigArgs

data class QueueRetryConfigArgs(val maxAttempts: Output<Int>? = null, val maxBackoff: Output<String>? = null, val maxDoublings: Output<Int>? = null, val maxRetryDuration: Output<String>? = null, val minBackoff: Output<String>? = null) : ConvertibleToJava<QueueRetryConfigArgs>

Constructors

Link copied to clipboard
constructor(maxAttempts: Output<Int>? = null, maxBackoff: Output<String>? = null, maxDoublings: Output<Int>? = null, maxRetryDuration: Output<String>? = null, minBackoff: Output<String>? = null)

Properties

Link copied to clipboard
val maxAttempts: Output<Int>? = null

Number of attempts per task. Cloud Tasks will attempt the task maxAttempts times (that is, if the first attempt fails, then there will be maxAttempts - 1 retries). Must be >= -1. If unspecified when the queue is created, Cloud Tasks will pick the default. -1 indicates unlimited attempts.

Link copied to clipboard
val maxBackoff: Output<String>? = null

A task will be scheduled for retry between minBackoff and maxBackoff duration after it fails, if the queue's RetryConfig specifies that the task should be retried.

Link copied to clipboard
val maxDoublings: Output<Int>? = null

The time between retries will double maxDoublings times. A task's retry interval starts at minBackoff, then doubles maxDoublings times, then increases linearly, and finally retries retries at intervals of maxBackoff up to maxAttempts times.

Link copied to clipboard
val maxRetryDuration: Output<String>? = null

If positive, maxRetryDuration specifies the time limit for retrying a failed task, measured from when the task was first attempted. Once maxRetryDuration time has passed and the task has been attempted maxAttempts times, no further attempts will be made and the task will be deleted. If zero, then the task age is unlimited.

Link copied to clipboard
val minBackoff: Output<String>? = null

A task will be scheduled for retry between minBackoff and maxBackoff duration after it fails, if the queue's RetryConfig specifies that the task should be retried.

Functions

Link copied to clipboard
open override fun toJava(): QueueRetryConfigArgs