Firebase Python Functions Now Run 80 Requests at Once by Default
Check Python Cloud Functions for shared state before upgrading. Firebase's SDK stops pinning one request per instance, which changes cost and concurrency.

Python Cloud Functions that call set_global_options() will start handling up to 80 requests at once per instance after an upgrade to the Firebase SDK released Dec. 3. Code that was only ever safe because it ran one request at a time can now break. Version 0.7.0 of firebase-functions for Python “no longer sets cpu by default,” Google said, so functions get the 2nd gen default of 1 vCPU “instead of a fractional CPU handling one request at a time,” which “changes cost and concurrency behavior” (Firebase release notes, Dec. 3, 2026).
Key Takeaways
- Before 0.7.0, any call to
set_global_options()quietly setcpu="gcf_gen1"on every function, even a call made only to pick a region. - After the upgrade, functions get 1 vCPU and up to 80 concurrent requests per instance.
- To keep the old behavior, pass
cpu="gcf_gen1"toset_global_options(). - The same release changes auth blocking timestamps, Pub/Sub message data and a test-only event constructor.
What Changed
Pull request #325, merged Oct. 29, explains how the old default got there. Calling set_global_options() “for any reason” would “silently set cpu="gcf_gen1" on every function,” it said, which at the default 256MB of memory meant “about 1/6 of a CPU and a concurrency of 1.” The fix leaves cpu unset, matching the per-function RuntimeOptions.cpu and the Node.js SDK.
Google’s release notes put the burden on the developer: “Make sure your code is safe to run concurrently, or pass cpu="gcf_gen1" to set_global_options() to keep the previous behavior.”
Already-deployed functions keep their current CPU setting, the pull request said, because the Firebase CLI carries the existing value over when the deploy manifest leaves it out. That points the risk at functions deployed for the first time on 0.7.0.
The other breaking changes are smaller:
- Auth blocking timestamps, including
AuthBlockingEvent.timestampand the user record’smetadata.creation_time, are now timezone-aware UTC values. Comparing them with naivedatetimeobjects raises aTypeError. AuthUserMetadata.creation_timecan now beNone, which can fail strictmypyorpyrightchecks.AuthBlockingEventrequires two new fields,auth_typeandresource, which breaks unit tests that build the event by hand.pubsub_fn.Message.dataandMessage.jsoncan beNonefor messages that carry attributes but no body.
The release also adds 2nd gen on_user_created and on_user_deleted Auth triggers, supports Python 3.14 and 3.15, and deprecates Python 3.10, which stays deployable until April 2027.
The Take
The CPU change is the right default, and a risky one to get by accident. A team that called set_global_options() to set a region or an instance cap never chose a concurrency of one. It got one anyway, and code written under that limit may lean on it: a module-level list that collects results, a global client that isn’t thread-safe, a counter bumped without a lock.
Before upgrading, search the codebase for mutable module-level state and any client libraries that don’t document thread safety. If that audit can’t be done this week, pin cpu="gcf_gen1" in set_global_options(), upgrade and remove the pin once the code is checked. Then watch the bill, since one full vCPU per instance is billed at a higher per-second rate than a sixth of one.
Fix the TypeError comparisons in the same pass. They fail loudly, which makes them the easy part.


