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

Ops: Add worker health to status page #4464

Closed
birkjernstrom opened this issue Nov 13, 2024 · 2 comments
Closed

Ops: Add worker health to status page #4464

birkjernstrom opened this issue Nov 13, 2024 · 2 comments
Labels
devops Improvements to our operations, monitoring, deployments etc

Comments

@birkjernstrom
Copy link
Member

We should add our worker to our public status page.

Challenge
Our worker is not accessible publicly, i.e cannot offer a health endpoint directly.

Solution

  • Setup a scheduled task, e.g each minute, for the worker to store some checks in Redis.
  • Add a /healthz endpoint to our public API checking the above and reporting 200 or 500 accordingly
@birkjernstrom birkjernstrom added the devops Improvements to our operations, monitoring, deployments etc label Nov 13, 2024
@frankie567
Copy link
Member

Discovered this:

ARQ already writes its own healthcheck key in Redis; so maybe we just need to query for that key in our health endpoint.

@naineel1209
Copy link
Contributor

Hi @birkjernstrom, I've created a PR with the changes mentioned in the discussions. Could you please check it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devops Improvements to our operations, monitoring, deployments etc
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants