Cloud Functions timeout behavior: when cleanup code is skipped after timeout
Timeout limits and cleanup in Cloud Functions Firebase Cloud Functions impose a hard timeout that terminates the execution thread when exceeded. In 1st‑gen functions the default is 60 s, extendable to 540 s; 2nd‑gen HTTP functions can run up to 3600 s. When the timeout fires, the runtime stops the function instance and any code scheduled after that point is