python - 适用于 python2.7 谷歌应用引擎的云任务 API

标签 python python-2.7 google-app-engine google-cloud-platform

我在 Google App Engine Python 2.7 下创建了一个项目。我使用 queue.yaml 创建了一些任务,并使用 glcoud 命令进行部署。当我转到“任务队列”部分下的 Google App Engine 控制台时,它会重定向到“云任务”页面。我可以看到我的 App Engine 队列列在 Cloud Tasks 下。

我仍未启用“Cloud Tasks API”服务,但当我启动后台任务时,哪个服务正在处理队列?那么,如果我想在 App Engine Python 2.7 中使用 Cloud Tasks 服务,我应该如何操作?

我已关注文档 https://cloud.google.com/tasks/docs/dual-overview对于Python 2.7,我们可以通过App Engine任务队列API访问云任务服务。使用 Cloud Tasks API 服务有一些关键的差异,例如延迟队列。我只是想确保当我迁移到 Cloud Tasks 时这些功能将可用。两种服务如何共存?

最佳答案

“Cloud Tasks API”提供了一个 REST API,您可以使用它从第二代 App Engine 标准环境运行时、任何 App Engine 灵活环境运行时,甚至完全从 App Engine 外部添加任务。

当您创建第一代 App Engine 推/拉队列时,您不需要直接使用此 API,但是正在创建的任务位于同一个服务上,就像您使用云任务 API。

关于python - 适用于 python2.7 谷歌应用引擎的云任务 API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56757282/

相关文章:

python - 在 Pandas DataFrame 中选择包含至少一个 True 值的列的最佳解决方案

python - 无法将字符串转换为浮点型

python - 在 Google App Engine 上创建大量数据存储对象的最节省内存的方法是什么?

python-2.7 - 使用 bs4 (beautiful soup) python 2.7 抓取网站问题

python - 比较 SQLAlchemy ORM 中两列之间的差异

google-app-engine - ndb 基于 KeyProperty 实例查询模型

json - Google 端点为引号中的长数据类型返回 JSON

python - fatal error : 'mymodule.h' file not found - Cython compile fails to find header

Python 数据帧 : how can I return the number of occurrences in a column?

python - 将 OECD API 中的数据读入 python(和 pandas)