Stay organized with collections Save and categorize content based on your preferences.
gcloud tasks queues create
QUEUE
[--http-header-override
=HEADER_FIELD
: HEADER_VALUE
] [--http-method-override
=HTTP_METHOD_OVERRIDE
] [--http-uri-override
=KEY
:VALUE
,[KEY
:VALUE
,…]] [--location
=LOCATION
] [--log-sampling-ratio
=LOG_SAMPLING_RATIO
] [--max-attempts
=MAX_ATTEMPTS
] [--max-backoff
=MAX_BACKOFF
] [--max-concurrent-dispatches
=MAX_CONCURRENT_DISPATCHES
] [--max-dispatches-per-second
=MAX_DISPATCHES_PER_SECOND
] [--max-doublings
=MAX_DOUBLINGS
] [--max-retry-duration
=MAX_RETRY_DURATION
] [--min-backoff
=MIN_BACKOFF
] [--routing-override
=KEY
:VALUE
,[…]] [[--http-oauth-service-account-email-override
=HTTP_OAUTH_SERVICE_ACCOUNT_EMAIL_OVERRIDE
: --http-oauth-token-scope-override
=HTTP_OAUTH_TOKEN_SCOPE_OVERRIDE
] | [--http-oidc-service-account-email-override
=HTTP_OIDC_SERVICE_ACCOUNT_EMAIL_OVERRIDE
: --http-oidc-token-audience-override
=HTTP_OIDC_TOKEN_AUDIENCE_OVERRIDE
]] [GCLOUD_WIDE_FLAG …
]
gcloud tasks queues create my-queue --max-attempts=10 --max-retry-duration=5s --max-doublings=4 --min-backoff=1s --max-backoff=10s --max-dispatches-per-second=100 --max-concurrent-dispatches=10 --routing-override=service:abc
QUEUE
--http-method-override
=HTTP_METHOD_OVERRIDE
--http-uri-override
=KEY
:VALUE
,[KEY
:VALUE
,…]
KEY must be at least one of: [scheme, host, port, path, query, mode]. Any missing keys will use the default.
--location
=LOCATION
--log-sampling-ratio
=LOG_SAMPLING_RATIO
--max-attempts
=MAX_ATTEMPTS
--max-backoff
=MAX_BACKOFF
--max-concurrent-dispatches
=MAX_CONCURRENT_DISPATCHES
--max-dispatches-per-second
=MAX_DISPATCHES_PER_SECOND
--max-doublings
=MAX_DOUBLINGS
A tasks retry interval starts at minBackoff, then doubles maxDoublings times, then increases linearly, and finally retries retries at intervals of maxBackoff up to maxAttempts times.
For example, if minBackoff is 10s, maxBackoff is 300s, and maxDoublings is 3, then the a task will first be retried in 10s. The retry interval will double three times, and then increase linearly by 2^3 * 10s. Finally, the task will retry at intervals of maxBackoff until the task has been attempted maxAttempts times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s.
--max-retry-duration
=MAX_RETRY_DURATION
--max-retry-duration
time has passed and the task has been attempted --max-attempts times, no further attempts will be made and the task will be deleted.
Must be a string that ends in 's', such as "5s".
--min-backoff
=MIN_BACKOFF
--routing-override
=KEY
:VALUE
,[…]
KEY must be at least one of: [service, version, instance]. Any missing keys will use the default.
Authorization
headers in the HttpRequest.headers field will be overridden for any tasks executed on this queue. At most one of these can be specified:
--http-oauth-service-account-email-override
=HTTP_OAUTH_SERVICE_ACCOUNT_EMAIL_OVERRIDE
This flag argument must be specified if any of the other arguments in this group are specified.
--http-oauth-token-scope-override
=HTTP_OAUTH_TOKEN_SCOPE_OVERRIDE
--http-oidc-service-account-email-override
=HTTP_OIDC_SERVICE_ACCOUNT_EMAIL_OVERRIDE
This flag argument must be specified if any of the other arguments in this group are specified.
--http-oidc-token-audience-override
=HTTP_OIDC_TOKEN_AUDIENCE_OVERRIDE
--access-token-file
, --account
, --billing-project
, --configuration
, --flags-file
, --flatten
, --format
, --help
, --impersonate-service-account
, --log-http
, --project
, --quiet
, --trace-token
, --user-output-enabled
, --verbosity
.
Run $ gcloud help
for details.
gcloud alpha tasks queues create
gcloud beta tasks queues create
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 2025-05-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-07 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4