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

Relax Polling Rate of Status Page #2866

Open
wants to merge 2 commits into
base: staging
Choose a base branch
from
Open

Relax Polling Rate of Status Page #2866

wants to merge 2 commits into from

Conversation

wpank
Copy link
Contributor

@wpank wpank commented Apr 15, 2024

Increases time between endpoint queries

should resolve timeouts mentioned in https://github.com/w3f/1k-validators-be-PRIVATE/issues/50

@wpank wpank requested a review from ironoa April 15, 2024 09:15
@wpank wpank marked this pull request as ready for review April 15, 2024 09:15
Copy link
Contributor

@ironoa ironoa left a comment

Choose a reason for hiding this comment

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

can you make this configurable or from constant instead of hard coded ?

@wpank
Copy link
Contributor Author

wpank commented Apr 16, 2024

can you make this configurable or from constant instead of hard coded ?

Updated to be a REFRESH_INTERVAL constant

@wpank wpank requested a review from ironoa April 16, 2024 11:20
@@ -66,17 +67,17 @@ const App = () => {
})),
);
setHasError(false);
setRefreshInterval(800); // Reset to faster refresh rate on success
setRefreshInterval(5000); // Reset to faster refresh rate on success
Copy link
Contributor

Choose a reason for hiding this comment

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

hardcoded value here ?

Comment says "faster", but 5000 is the same value of the REFRESH_INTERVAL constant, which seems to be used for the "Slow down" scenario...

=> maybe we need REFRESH_INTERVAL_FAST and REFRESH_INTERVAL_SLOW ?

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.

2 participants