tasks.TaskQueueOptions interface

Options for configuring the task queue to listen to.

Signature:

export interface TaskQueueOptions 

Properties

Property Type Description
invoker "private" | string | string[] Who can enqueue tasks for this function. If left unspecified, only service accounts which have roles/cloudtasks.enqueuer and roles/cloudfunctions.invoker will have permissions.
rateLimits RateLimits How congestion control should be applied to the function.
retryConfig RetryConfig How a task should be retried in the event of a non-2xx return.

Who can enqueue tasks for this function. If left unspecified, only service accounts which have roles/cloudtasks.enqueuer and roles/cloudfunctions.invoker will have permissions.

Signature:

invoker?: "private" | string | string[];

tasks.TaskQueueOptions.rateLimits

How congestion control should be applied to the function.

Signature:

rateLimits?: RateLimits;

tasks.TaskQueueOptions.retryConfig

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

Signature:

retryConfig?: RetryConfig;

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

Last updated 2023-04-24 UTC.