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

Add worker health output to __heartbeat__ endpoint. #415

Open
Micheletto opened this issue Jan 20, 2021 · 1 comment
Open

Add worker health output to __heartbeat__ endpoint. #415

Micheletto opened this issue Jan 20, 2021 · 1 comment

Comments

@Micheletto
Copy link
Contributor

The __heartbeat__ endpoint should be authoritative for the health of the service. If backend services, or workers are not functioning, the endpoint should reflect that with error status and output. A json list of backend, and their present status is used in other services and would be helpful here but not strictly necessary.

@g-k
Copy link
Contributor

g-k commented Jan 21, 2021

Since the scanners shut themselves down, I think we can add an hourly or test scan to the runner / cron process then treat zero scansLast24Hours from /api/v1/stats?format=text as a backend being down.

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

No branches or pull requests

2 participants