有没有办法停止/禁用Google Cloud Function? [英] Is there a way to stop/disable a Google Cloud Function?

查看:147
本文介绍了有没有办法停止/禁用Google Cloud Function?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have running multiple Google Cloud functions. One is not operating well, so I want to stop them until I've fixed the situation.

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

I have seen that I can remove the function, but is there a way to disable and later; enable the function?

推荐答案

您不能禁用功能.只需注释功能主体即可.最好在控制台中记录该调用,然后返回null,以便您可以随时跟踪该函数的调用.

You cannot disable a function. Just comment the function body. It would be a good practice to log the call in the console and then return null so you can keep track whenever the function is invoked.

这篇关于有没有办法停止/禁用Google Cloud Function?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆