Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(functions): Reroute Cloud Tasks to emulator when it is running #2649

Merged
merged 8 commits into from
Aug 8, 2024

Conversation

GarrettBurroughs
Copy link
Contributor

@GarrettBurroughs GarrettBurroughs commented Jul 29, 2024

Depends on: firebase/firebase-tools#7475

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

API Changes

Introduces CLOUD_TASKS_EMULATOR_HOST which should contain the host of the Cloud Tasks emulator if it is running. When set, the admin SDK will reroute requests from enqueue and delete to the emulator rather than the production instance.

RELEASE NOTES: Added support for the CLOUD_TASKS_EMULATOR_HOST environment variable.

Copy link
Contributor

@blidd-google blidd-google left a comment

Choose a reason for hiding this comment

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

LGTM pending Lahiru's comments

Copy link
Member

@lahirumaramba lahirumaramba left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!

@GarrettBurroughs GarrettBurroughs merged commit 8d11961 into master Aug 8, 2024
10 checks passed
@lahirumaramba lahirumaramba changed the title Reroute Cloud Tasks to emulator when it is running feat(functions): Reroute Cloud Tasks to emulator when it is running Aug 8, 2024
@lahirumaramba lahirumaramba deleted the gburroughs-taskqueue-emulator branch August 8, 2024 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants