You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Race condition when trying to use more than one cloud tasks instance #3059
Environment is irrelevant, but I'm using ubuntu 25.04 with firebase admin 13.6.0, cloud tasks, node 20 and npm 10.8.2.
When using multiple Firebase apps (e.g., one for emulator, one for production), there's a race condition because CLOUD_TASKS_EMULATOR_HOST is read on every operation instead of being cached in the constructor like Auth and Storage.
This makes it impossible to safely use an emulator app and a production app in the same process as when you connect to an emulator all calls go there.
Activity
amfc commentedon Jan 29, 2026
firebase-admin-cloud-tasks-emulator-fix.patch
patch src/functions/functions-api-client-internal.ts < firebase-admin-cloud-tasks-emulator-fix.patch
jonathanedey commentedon Jun 9, 2026
This is resolved in version 14.0.0. If you continue to encounter issues, please open a new issue with the relevant details.