Reputation: 2095
The docs on this aren't great. Really I want to find a way to create a task queue programmatically if it does not already exist without having to install the google cloud package locally and deploying a yaml that specifies the queues.
Upvotes: 1
Views: 542
Reputation: 39824
The short answer: this is not possible, at least not at this time.
The only way to create/update a task queue configuration, at least presently, is to deploy a queue configuration file with the corresponding information. From Creating Push Queues:
To add queues or change the default configuration, edit the
queue.yaml
file for your application, which you upload to App Engine.
This can be scripted, qualifying in a sense as being done programmatically. See related Create TaskQueue programmatically
Technically (but most likely not what you're after) deploying the queue configuration file can also be done with a GAE language specific SDK, not only with the google cloud (gcloud
) SDK.
Side note: you tagged your post with python-3.x, which is only supported in the flexible environment, you should be aware of the Task Queue limitations in such case.
Upvotes: 2