google-cloud-functions - 有没有办法停止/禁用Google Cloud Function?

标签 google-cloud-functions

我正在运行多个Google Cloud功能。一个运行不正常,所以我想在解决问题之前停止它们。

我已经知道可以删除该功能,但是有一种方法可以禁用它,以后再禁用它。启用功能?

最佳答案

您不能禁用功能。只需注释功能主体。最好在控制台中记录调用,然后返回null,这样您就可以在调用函数时随时进行跟踪。

关于google-cloud-functions - 有没有办法停止/禁用Google Cloud Function?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43681644/

相关文章:

node.js - Cloud Functions 和 Nodejs 中的 firebase.database.ref 路径语法

javascript - 如何在 Firebase Cloud 函数中执行类似 'child-added' 事件的操作?

python - Google Cloud Functions : "Error: cannot communicate with function. Request rejected."

javascript - 使用云函数编写firestore文档(使用react.js)

firebase - 如何在Firebase云功能中获取客户端IP地址?

typescript - FCM 和 Typescript 异步等待 : Network Timing Out

android - 使用 Firebase Cloud 函数获取当前日期和时间

Node.js 将图像上传到 firebase 存储

firebase - 只允许具有特定自定义声明的用户调用 Firebase 函数

node.js - 使用expressjs时我们如何将文件模块化然后在firebase云函数中使用