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

stats: wait until blockscout finishes indexing #683

Closed
sevenzing opened this issue Nov 17, 2023 · 1 comment
Closed

stats: wait until blockscout finishes indexing #683

sevenzing opened this issue Nov 17, 2023 · 1 comment
Assignees
Milestone

Comments

@sevenzing
Copy link
Contributor

sevenzing commented Nov 17, 2023

For now we have to manually wait until blockscout finishes indexing, and only after that start stats service (overwise statistic will be incomplete). This is super inconvenient, so
I suggest:

  1. In stats determine if blockscout is currently in indexing status and just wait + return {"status": "WAITING_FOR_BLOCKSCOUT_INDEXING"} instead of {"status": "SERVING"} in /health
  2. In frontend: show Stats and charts button in the menu, but in stats page go to /health endpoint and in case WAITING_FOR_BLOCKSCOUT_INDEXING show page like "We are currently indexing blockchain data. Please wait until blockscout finishes indexing."
@sevenzing sevenzing added the wontfix This will not be worked on label Nov 17, 2023
@sevenzing sevenzing added this to the stats milestone Nov 17, 2023
@bragov4ik bragov4ik removed the wontfix This will not be worked on label Aug 28, 2024
@bragov4ik bragov4ik self-assigned this Aug 28, 2024
@bragov4ik bragov4ik changed the title Stats: wait until blockscout finishes indexing stats: wait until blockscout finishes indexing Aug 29, 2024
@bragov4ik
Copy link
Contributor

The waiting part is working; reporting extracted to a separate issue #1123

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

No branches or pull requests

2 participants