tasks.TaskQueueOptions interface

Options for configuring the task queue to listen to.

Signature:

exportinterfaceTaskQueueOptions

Properties

PropertyTypeDescription
invoker"private" | string | string[]Who can enqueue tasks for this function. If left unspecified, only service accounts which haveroles/cloudtasks.enqueuer androles/cloudfunctions.invoker will have permissions.
rateLimitsRateLimitsHow congestion control should be applied to the function.
retryConfigRetryConfigHow a task should be retried in the event of a non-2xx return.

tasks.TaskQueueOptions.invoker

Who can enqueue tasks for this function. If left unspecified, only service accounts which haveroles/cloudtasks.enqueuer androles/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 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.