cloud-functions-emulator icon indicating copy to clipboard operation
cloud-functions-emulator copied to clipboard

Add a "maxCalls" option to workers, meaning they shutdown after a certain number of calls

Open jmdobry opened this issue 8 years ago • 0 comments

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.

jmdobry avatar Mar 06 '17 19:03 jmdobry