Stay organized with collections
Save and categorize content based on your preferences.
Creates a queue. Queues created with this method allow tasks to live for
a maximum of 31 days. After a task is 31 days old, the task will be
deleted regardless of whether it was dispatched or not. WARNING: Using
this method may have unintended side effects if you are using an App
Engine queue.yaml or queue.xml file to manage your queues. Read
Overview of Queue Management and
queue.yaml before using
this method.
Arguments
Parameters
parent
string
Required. The location name in which the queue will be created. For example: projects/PROJECT_ID/locations/LOCATION_ID The list of allowed locations can be obtained by calling Cloud Tasks' implementation of ListLocations.
[[["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-09-04 UTC."],[],[],null,["# Method: googleapis.cloudtasks.v2beta3.projects.locations.queues.create\n\nCreates a queue. Queues created with this method allow tasks to live for\na maximum of 31 days. After a task is 31 days old, the task will be\ndeleted regardless of whether it was dispatched or not. WARNING: Using\nthis method may have unintended side effects if you are using an App\nEngine `queue.yaml` or `queue.xml` file to manage your queues. Read\n[Overview of Queue Management and\nqueue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using\nthis method.\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`Queue`](/workflows/docs/reference/googleapis/cloudtasks/v2beta3/Overview#Queue).\n\nSubworkflow snippet\n-------------------\n\nSome fields might be optional or required.\nTo identify required fields, refer to the [API documentation](https://cloud.google.com/tasks/docs/reference/rest/v2beta3/projects.locations.queues/create). \n\n### YAML\n\n```yaml\n- create:\n call: googleapis.cloudtasks.v2beta3.projects.locations.queues.create\n args:\n parent: ...\n body:\n appEngineHttpQueue:\n appEngineRoutingOverride:\n instance: ...\n service: ...\n version: ...\n rateLimits:\n maxBurstSize: ...\n maxConcurrentDispatches: ...\n maxDispatchesPerSecond: ...\n retryConfig:\n maxAttempts: ...\n maxBackoff: ...\n maxDoublings: ...\n maxRetryDuration: ...\n minBackoff: ...\n stackdriverLoggingConfig:\n samplingRatio: ...\n taskTtl: ...\n tombstoneTtl: ...\n type: ...\n result: createResult\n```\n\n### JSON\n\n```json\n[\n {\n \"create\": {\n \"call\": \"googleapis.cloudtasks.v2beta3.projects.locations.queues.create\",\n \"args\": {\n \"parent\": \"...\",\n \"body\": {\n \"appEngineHttpQueue\": {\n \"appEngineRoutingOverride\": {\n \"instance\": \"...\",\n \"service\": \"...\",\n \"version\": \"...\"\n }\n },\n \"rateLimits\": {\n \"maxBurstSize\": \"...\",\n \"maxConcurrentDispatches\": \"...\",\n \"maxDispatchesPerSecond\": \"...\"\n },\n \"retryConfig\": {\n \"maxAttempts\": \"...\",\n \"maxBackoff\": \"...\",\n \"maxDoublings\": \"...\",\n \"maxRetryDuration\": \"...\",\n \"minBackoff\": \"...\"\n },\n \"stackdriverLoggingConfig\": {\n \"samplingRatio\": \"...\"\n },\n \"taskTtl\": \"...\",\n \"tombstoneTtl\": \"...\",\n \"type\": \"...\"\n }\n },\n \"result\": \"createResult\"\n }\n }\n]\n```"]]