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

automate stats update #2511

Merged
merged 5 commits into from
Mar 31, 2024
Merged

Conversation

0oM4R
Copy link
Contributor

@0oM4R 0oM4R commented Mar 28, 2024

Description

make the stats image calls the stats update endpoint each 6h to update stats

Changes

  • add zinit
  • add cron zinitt process
  • add ngnix zint process
  • add cron job to call localhost/api/status-update each 6h

Related Issues

Documentation PR

For UI changes, Plaese provide the Documetation PR on info_grid

Checklist

  • Tests included
  • Build pass
  • Documentation
  • Code format and docstrings
  • Screenshots/Video attached (needed for UI changes)

Copy link
Contributor

@Mahmoud-Emad Mahmoud-Emad left a comment

Choose a reason for hiding this comment

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

Good job ya Omar, I'm wondering if we need to update just the Zinit version

packages/stats/Dockerfile Outdated Show resolved Hide resolved
Copy link
Contributor

@amiraabouhadid amiraabouhadid left a comment

Choose a reason for hiding this comment

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

Is there a reason why you left out the endpoint https://stats.dev.grid.tf/api/stats-summary mentioned in the issue?

@AhmedHanafy725
Copy link
Contributor

Is there a reason why you left out the endpoint https://stats.dev.grid.tf/api/stats-summary mentioned in the issue?

no, just as an example. The workflow solution wasn't the optimal solution to update the stats as we have many stacks per network so the update should happen within the image itself.

@amiraabouhadid amiraabouhadid merged commit 651ba71 into development Mar 31, 2024
3 checks passed
@amiraabouhadid amiraabouhadid deleted the development_automate_statsUpdate branch March 31, 2024 10:15
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.

4 participants