-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
QuartzHealthCheck never recovers after detecting failure #1496
Comments
I may be able to raise a PR if that's an acceptable route? |
Sure, that would be great! |
At the moment it seems to report unhealthy if there's any job errors whereas I'd expect it to be more of an infrastructural test? I.e. it's ok if jobs are failing but not if there are DB errors? Is there a way to tell the difference? The other option is to just check if the job store is healthy rather than listen for general errors? |
I think it would be sufficient to check that scheduler is running and job store operates. A single small query should suffice, even trying to get non-existing item as long as error is what is expected. |
I think this is done. |
I've simplified and tested this now |
Describe the bug
The error count can only be incremented but is never cleared if things start working.
Version used
3.3.3
To Reproduce
Start a quartz app with the DB down and then start the DB. The health check always reports an error.
Expected behavior
I'd expect the health check to start reporting success when the DB comes up
The text was updated successfully, but these errors were encountered: