cloud-functions-emulator
cloud-functions-emulator copied to clipboard
Add a "maxCalls" option to workers, meaning they shutdown after a certain number of calls
Right now a worker stays alive until its been idle for 5 minutes, or the function's code changes, or the user re-deploys over the function. Setting maxCalls to 1, for example, would cause a worker to restart after every call. This could be handy if someone is testing "cold start" code.