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

run admin.initializeApp globally #5

Merged
merged 1 commit into from Jun 30, 2021
Merged

Conversation

kylewill
Copy link
Contributor

@kylewill kylewill commented Jun 29, 2021

Run admin.initializeApp() on load to prevent multiple invocations in the event user runs backfill multiple times while a function instance is still active.

Change Summary

Executes admin.initializeApp() only once per function instance to avoid multiple invocation error.

PR Checklist

Run admin.initializeApp() on load to prevent multiple invocations in the event user runs backfill multiple times while a function instance is still active.
@jasonbosco
Copy link
Member

Thanks @kylewill!

@jasonbosco jasonbosco merged commit da88e69 into typesense:master Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Backfill function attempts to rerun admin.initializeApp on rerun
2 participants