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

Use periodic task to collect metrics for landing page display #271

Open
manning-ncsa opened this issue Jan 2, 2025 · 0 comments
Open

Use periodic task to collect metrics for landing page display #271

manning-ncsa opened this issue Jan 2, 2025 · 0 comments
Assignees

Comments

@manning-ncsa
Copy link
Collaborator

Instead of dynamically rendering the landing page transient statistics by querying the database and constructing a bar chart every time the page is requested, we could use a Celery Beat periodic task to pre-render this content such that static files are served instead. Some ideas for implementation:

  • The numerical values could be directly saved to the static HTML file on disk by rendering an HTML template.
  • The bar chart could be rendered as a static image file instead of an interactive widget given the lack of need for interactivity here.

These static files would ideally be stored in the existing static files depot that is served by the NGINX proxy instead of the Blast API server.

@manning-ncsa manning-ncsa self-assigned this Jan 2, 2025
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

1 participant