google-cloud-functions

Is there a way to stop/disable a Google Cloud Function?


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?


Solution

  • 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.