feat(functions): Enable Cloud Task Queue Emulator support by jonathanedey · Pull Request #920 · firebase/firebase-admin-python · GitHub
Skip to content

feat(functions): Enable Cloud Task Queue Emulator support#920

Merged
jonathanedey merged 9 commits into
masterfrom
je-tq-emulator
Dec 3, 2025
Merged

feat(functions): Enable Cloud Task Queue Emulator support#920
jonathanedey merged 9 commits into
masterfrom
je-tq-emulator

Conversation

@jonathanedey

Copy link
Copy Markdown
Contributor

Allows the admin SDK to enqueue and delete tasks within the locally running cloud tasks emulator to provide for easier testing.

RELEASE NOTES: Enabled support for interacting with the Cloud Task emulator when the CLOUD_TASKS_EMULATOR_HOST environment variable is set.

@gemini-code-assist

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for the Cloud Task Queue Emulator, which is a valuable addition for local development and testing. The implementation correctly detects the emulator environment and adapts the API requests. The refactoring to use _to_api_dict for payload creation is a nice improvement for clarity and correctness. I have identified a couple of issues: a potential runtime error when parsing the emulator's response, and a missing input validation in the delete method which appears to be a regression. I've also suggested a small performance optimization to cache the environment variable lookup. Overall, this is a solid contribution with comprehensive tests for the new functionality.

Comment thread firebase_admin/functions.py
Comment thread firebase_admin/functions.py
Comment thread firebase_admin/functions.py

@lahirumaramba lahirumaramba left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM!

@lahirumaramba lahirumaramba added release-note release:stage Stage a release candidate labels Nov 25, 2025
@jonathanedey jonathanedey merged commit 2305519 into master Dec 3, 2025
14 of 15 checks passed
@jonathanedey jonathanedey deleted the je-tq-emulator branch February 18, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:stage Stage a release candidate release-note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AttributeError: 'Credentials' object has no attribute 'service_account_email'

2 participants