task/WG-371: improve status health check endpoint - #291
Merged
Conversation
The endpoint submits a Celery task to validate worker, Redis, and DB connectivity from within the worker network
nathanfranklin
requested review from
rstijerina,
shayanaijaz,
sophia-massie and
taoteg
June 25, 2026 00:17
rstijerina
approved these changes
Jul 2, 2026
taoteg
approved these changes
Jul 15, 2026
taoteg
left a comment
Contributor
There was a problem hiding this comment.
LGTM! More monitoring FTW!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Adds an authenticated
/status/completeendpoint to validate worker, Redis, and DB connectivity from within the worker network. Returns 200 if all components are healthy, 503 if any fail. This will be used in Gatus monitoring. This is primarily to address firewall issues on deployed VMs where workers cannot reach a needed resource (like redis or database). So to catch things like the recentn firewall issue where users cannot reach Redis on the geoapi-services machineRelated Jira tickets
Summary of Changes
/status/completeauthenticated endpoint that submits a Celery task checking Redis and DB connectivity from the worker networkTesting Steps
make start)http://localhost:8888http://localhost:8000/status/complete/— should return{"overall":"ok","components":{"redis":{"status":"ok","detail":null},"database":{"status":"ok","detail":null}}}Notes