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

Register function fails on placeholders when indexing is on by default #669

Closed
ejizba opened this issue Mar 21, 2023 · 0 comments · Fixed by #671
Closed

Register function fails on placeholders when indexing is on by default #669

ejizba opened this issue Mar 21, 2023 · 0 comments · Fixed by #671
Labels
Milestone

Comments

@ejizba
Copy link
Contributor

ejizba commented Mar 21, 2023

Here's what happens:

  1. Host starts worker in placeholder mode (aka with a dummy app)
  2. Host asks worker to index. Worker finds nothing to index in the dummy app and sets an internal boolean basically saying "indexing done"
  3. Host sends reload request with customer's actual app
  4. Worker reloads, but fails to load the user's app with error "A function can only be registered during app startup." because our internal boolean said we already indexed

NOTE: This is only a problem if indexing is on by default because step 2 would be skipped if it's off by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant