Hello Google Cloud community,
We are preparing a coordinated deployment of 25 existing Firebase Cloud Functions (2nd generation), backed by Cloud Run, running Node.js 22.
The deployment updates security-sensitive authorization logic involving consent validation and Firestore transactions. Our goal is to ensure that an old function revision cannot continue executing outdated authorization logic after the cutover.
Environment
-
Firebase Cloud Functions Gen2 / Cloud Run
-
Node.js 22
-
HTTP/callable functions and one Cloud Scheduler-triggered function
-
Firestore transactional operations
-
Multiple independent Cloud Run services
-
No tagged revisions currently configured
We understand that moving 100% of traffic to a new revision does not necessarily terminate in-flight requests on the previous revision. We also understand that an HTTP request timeout does not necessarily terminate application processing inside the container.
We are evaluating a controlled maintenance procedure involving temporary request admission restrictions, Scheduler coordination, and a staged deployment.
Our questions:
-
Is there a Google-supported method to guarantee that all executions belonging to an old Cloud Run revision have terminated, including processing that may continue after an HTTP timeout?
-
If an untagged Cloud Run service is switched to manual scaling with zero instances, what happens to requests already executing? Is there a documented upper bound on their remaining execution lifetime?
-
Can Cloud Run metrics, revision instance counts, or another API reliably prove that no code from a specific old revision remains executing?
-
Does temporarily disabling default service URLs block both run.app and cloudfunctions.net entry points for Gen2 functions? What additional paths must be considered?
-
How should an already-running Cloud Scheduler invocation be handled during a coordinated deployment?
-
What is the recommended Google Cloud procedure for safely replacing multiple Gen2 functions when old and new authorization logic must not overlap?
-
If absolute execution termination cannot be established, what is the strongest supported operational guarantee, and what residual risks must be accepted?
We are looking for authoritative platform behavior, documented guarantees, or an officially recommended deployment procedure.
We are not experiencing an outage and are not requesting changes to any existing service.
Thank you.