简体   繁体   中英

GCP Cloud Tasks are defined per project or service?

I'm creating a new service in App Engine Python 3 using a Cloud Task queue. The project already has a service using python 2 and declaring the queues in a queue.yaml file.

According with the documentation I can't mix the queue's creation using queue.yaml and Cloud Tasks API, so I'll create another yaml file for the new service.

My question is if the new queue.yaml will overwrite the existing queues or I can declare distinct queues for each service.

The queue.yaml file is global to the project. On app engine you can have only one. If you create a new one and you omit the previous one, the previous will be paused or deleted.

If you use Cloud Task, don't forget to add the existing task queue in the queue.yaml file for preventing the pause or the deletion of the Cloud Task queue.

My recommendation: forget the queue.yaml file and switch to the Cloud Task. queue.yaml file belong to the old version. Deprecated a day. Bet on the future!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM