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

Persist checkers state? #66

Open
gen2brain opened this issue Aug 20, 2019 · 3 comments
Open

Persist checkers state? #66

gen2brain opened this issue Aug 20, 2019 · 3 comments
Labels

Comments

@gen2brain
Copy link

Hi,

I would like to persist checkers state, so if some check was in the failed state after I restart service I would like to still be in a failed state and to expect recover. I can use map from State() to save that to some JSON file, but I don't see a way to set it for checker before Start(). Is this possible?

Thanks,
Milan

@gen2brain
Copy link
Author

I solved this by adding LoadState, like this https://github.com/gen2brain/go-health/commit/fd2225e1f326134d0f30418592ddae1a77de2347, and it works as expected.

Still, I would prefer to not use my fork.

@schigh
Copy link
Contributor

schigh commented Sep 26, 2019

@gen2brain apologies for the late response. I will look into this and prioritize it.

@dselans
Copy link
Contributor

dselans commented Jan 31, 2021

This totally makes sense. Should definitely have this functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants