firebase - 为什么 "retry on failure"在 Google Cloud Functions 控制台中显示为灰色?

标签 firebase google-cloud-platform google-cloud-firestore google-cloud-functions

我正在设置一些 Cloud Functions 来处理 Firestore 文档事件。我正在使用标准 firebase deploy --only functions命令来部署我的功能。当我按照说明操作时 in this doc ,我在 GCP 控制台上转到我的功能的配置,看到我需要启用的复选框变灰,没有更多信息:

cloud function trigger configuration

关于为什么我不能通过 GCP 控制台启用自动重试的任何想法?上述文档将这种方法(通过 GCP 控制台)描述为启用重试的唯一方法。理想情况下,我可以以某种方式注释我的函数代码,以启用/禁用每个函数的重试。

最佳答案

要回答我自己的问题...只需单击 EDIT顶部工具栏上的按钮使复选框可编辑:

function details toolbar

有一种在部署时执行此操作的方法仍然会很好,无论是通过 firebase deploy 的标志命令,或通过代码注释。

关于firebase - 为什么 "retry on failure"在 Google Cloud Functions 控制台中显示为灰色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52228574/

相关文章:

javascript - 如何为 Firebase 中的数组类型文档项分配时间戳

尝试保存到数据库时,Angularfire firestore 始终提供不足的权限

android - 控制firebase数据库中onChildAdded事件的发生

javascript - 如何使用 Axios 捕获服务器代码错误

python - Google App Engine 上的 Golang App 调用 Python 脚本

postgresql - Cloud SQL - PostgreSQL - 如何导入 .csv 文件?

google-cloud-platform - Cloud Dataproc 和其他 Google Cloud 产品的身份验证错误

ios - 从 Firebase 数据库中删除子项不起作用

android - 即使在验证电子邮件后,Firebase isEmailVerified 也会返回 false

firebase - 当我开始在 Firestore 中收听单个文档时,即使该文档没有更改,我是否需要付费阅读一次?