QueueRateLimits

data class QueueRateLimits(val maxBurstSize: Int? = null, val maxConcurrentDispatches: Int? = null, val maxDispatchesPerSecond: Double? = null)

Constructors

Link copied to clipboard
constructor(maxBurstSize: Int? = null, maxConcurrentDispatches: Int? = null, maxDispatchesPerSecond: Double? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val maxBurstSize: Int? = null

(Output) The max burst size. Max burst size limits how fast tasks in queue are processed when many tasks are in the queue and the rate is high. This field allows the queue to have a high rate so processing starts shortly after a task is enqueued, but still limits resource usage when many tasks are enqueued in a short period of time.

Link copied to clipboard

The maximum number of concurrent tasks that Cloud Tasks allows to be dispatched for this queue. After this threshold has been reached, Cloud Tasks stops dispatching tasks until the number of concurrent requests decreases.

Link copied to clipboard

The maximum rate at which tasks are dispatched from this queue. If unspecified when the queue is created, Cloud Tasks will pick the default.