[英]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.我正在使用 Cloud Task 队列在 App Engine Python 3 中创建一项新服务。 The project already has a service using python 2 and declaring the queues in a
queue.yaml
file.该项目已经有一个服务使用 python 2 并在
queue.yaml
文件中声明队列。
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.根据文档,我不能混合使用
queue.yaml
和 Cloud Tasks API 创建队列,因此我将为新服务创建另一个 yaml 文件。
My question is if the new queue.yaml
will overwrite the existing queues or I can declare distinct queues for each service.我的问题是新的
queue.yaml
是否会覆盖现有队列,或者我可以为每个服务声明不同的队列。
The queue.yaml file is global to the project. queue.yaml 文件是项目的全局文件。 On app engine you can have only one.
在 App Engine 上你只能有一个。 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.如果使用 Cloud Task,不要忘记在 queue.yaml 文件中添加已有的任务队列,以防止 Cloud Task 队列暂停或删除。
My recommendation: forget the queue.yaml file and switch to the Cloud Task.我的建议:忘记 queue.yaml 文件并切换到 Cloud Task。 queue.yaml file belong to the old version.
queue.yaml 文件属于旧版本。 Deprecated a day.
弃用一天。 Bet on the future!
赌未来!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.