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

limit healthcheck retries #2394

Merged
merged 2 commits into from
Sep 9, 2024
Merged

limit healthcheck retries #2394

merged 2 commits into from
Sep 9, 2024

Conversation

Eslam-Nawara
Copy link
Contributor

@Eslam-Nawara Eslam-Nawara commented Aug 12, 2024

Description

limit healthcheck retries

Changes

limit healthcheck retries

Related Issues

Checklist

  • Tests included
  • Build pass
  • Documentation
  • Code format and docstring

@@ -17,8 +18,18 @@ const acceptableSkew = 10 * time.Minute
func RunNTPCheck(ctx context.Context) {
go func() {
for {
if err := ntpCheck(); err != nil {
exp := backoff.NewExponentialBackOff()
check := func() error {
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is this needed? in retryNotify you can use ntpCheck directly no?

@Eslam-Nawara
Copy link
Contributor Author

before and after limiting retries
image
image

@Eslam-Nawara Eslam-Nawara merged commit afaec4c into main Sep 9, 2024
23 of 24 checks passed
@Eslam-Nawara Eslam-Nawara deleted the limit-healthcheck-retries branch September 9, 2024 09:40
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.

3 participants