tasks.TaskQueueOptions interface
Stay organized with collections
Save and categorize content based on your preferences.
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. |
tasks.TaskQueueOptions.invoker
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.
[null,null,["Last updated 2023-04-24 UTC."],[],[],null,["Options for configuring the task queue to listen to.\n\n**Signature:** \n\n export interface TaskQueueOptions \n\nProperties\n\ntasks.TaskQueueOptions.invoker\n\nWho can enqueue tasks for this function. If left unspecified, only service accounts which have `roles/cloudtasks.enqueuer` and `roles/cloudfunctions.invoker` will have permissions.\n\n**Signature:** \n\n invoker?: \"private\" | string | string[];\n\ntasks.TaskQueueOptions.rateLimits\n\nHow congestion control should be applied to the function.\n\n**Signature:** \n\n rateLimits?: RateLimits;\n\ntasks.TaskQueueOptions.retryConfig\n\nHow a task should be retried in the event of a non-2xx return.\n\n**Signature:** \n\n retryConfig?: RetryConfig;"]]