Struct google_cloudtasks2_beta2::RateLimits[][src]

pub struct RateLimits {
    pub max_tasks_dispatched_per_second: Option<f64>,
    pub max_burst_size: Option<i32>,
    pub max_concurrent_tasks: Option<i32>,
}

Rate limits.

This message determines the maximum rate that tasks can be dispatched by a queue, regardless of whether the dispatch is a first task attempt or a retry.

This type is not used in any activity, and only used as part of another schema.

Fields

The maximum rate at which tasks are dispatched from this queue.

The maximum allowed value is 500.

  • For App Engine queues, this field is 1 by default.
  • For pull queues, this field is output only and always 10,000. In addition to the max_tasks_dispatched_per_second limit, a maximum of 10 QPS of CloudTasks.PullTasks requests are allowed per queue.

This field has the same meaning as rate in queue.yaml.

Output only. The max burst size.

Max burst size limits how fast the queue is 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.

  • For App Engine queues, if RateLimits.max_tasks_dispatched_per_second is 1, this field is 10; otherwise this field is RateLimits.max_tasks_dispatched_per_second / 5.
  • For pull queues, this field is output only and always 10,000.

Note: For App Engine queues that were created through queue.yaml/xml, max_burst_size might not have the same settings as specified above; CloudTasks.UpdateQueue can be used to set max_burst_size only to the values specified above.

This field has the same meaning as bucket_size in queue.yaml.

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.

The maximum allowed value is 5,000.

  • For App Engine queues, this field is 10 by default.
  • For pull queues, this field is output only and always -1, which indicates no limit.

This field has the same meaning as max_concurrent_requests in queue.yaml.

Trait Implementations

impl Default for RateLimits
[src]

Returns the "default value" for a type. Read more

impl Clone for RateLimits
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for RateLimits
[src]

Formats the value using the given formatter. Read more

impl Part for RateLimits
[src]

Auto Trait Implementations

impl Send for RateLimits

impl Sync for RateLimits