简体   繁体   English

GCP 云任务是按项目或服务定义的吗?

[英]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.

相关问题 在 GCP 云功能中添加跨项目服务帐户 - Adding cross project service account in GCP cloud functions 每个项目的 GCP / GKE 导出到 bigquery 的成本 - GCP / GKE export cost to bigquery per project 是否可以重命名 GCP Cloud Run 服务? - Is it possible to rename a GCP Cloud Run Service? GCP Cloud Tasks:缩短创建先前创建的命名任务的周期 - GCP Cloud Tasks: shorten period for creating a previously created named task Google Cloud CloudSQL 实例无法使用 Terraform 提供程序创建,并出现错误“未找到每产品每项目服务帐户” - Google Cloud CloudSQL Instance Fails To Create using Terraform Provider With Error "Per-Product Per-Project Service Account is not found" Google 云数据库迁移服务 - 是否有人使用 DMS 使用 VPC 对等将 GCP postgres 实例从一个服务项目迁移到另一个服务项目? - Google Cloud Database Migration Service - Has anyone used DMS to migrate GCP postgres instance from one service project to another using VPC Peering? 如何在 GCP 中部署基于跨项目 GCS 事件的云 function? - How to deploy a cross project GCS event based cloud function in GCP? 使用 SQL alchemy 和 GCP 服务帐户连接到 GCP Cloud SQL Auth Proxy - Connect to a GCP Cloud SQL Auth Proxy using SQL alchemy and a GCP service account 如何通过 terraform 在 GCP Cloud 中禁用 GKE 服务中的日志记录和监控服务 - How to disable logging and monitoring service in GKE service in GCP Cloud via terraform 用于云构建的跨项目服务帐户模拟 - Cross project service account impersonation for cloud build
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM