Search code examples
google-cloud-platformgoogle-cloud-tasks

Google task queue not in us-west1


My gcloud tools default to us-west1 but when I create a queue and try to use via java and apis, I get this error

"Location 'us-west1' is not a valid location. Use ListLocations to list valid locations.",

and when I try to list locations like it says with gcloud, I get this

Deans-The-Machine dean$ gcloud tasks queues list
QUEUE_NAME        STATE    MAX_NUM_OF_TASKS  MAX_RATE (/sec)  MAX_ATTEMPTS
staging-scrapers  RUNNING  25                2.0              3

How do I get the locations list with gcloud command line?

thanks, Dean


Solution

  • As per the documentation it seems that Cloud Task is not available in us-west1.

    Taking a look at the Cloud Tasks overview you will see that Cloud Tasks requires an App Engine app to be able to host the queues. If you take a look at the currently available regions for GAE, you will see that the region us-westt is not listed, therefore, you cannot host the Cloud Tasks queues in that specific region.

    I found this Feature Request asking for add us-west1 in the available Regions for App Engine