Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Update health check if database connection drops #353

Closed
wadeking98 opened this issue Mar 21, 2022 · 0 comments · Fixed by #354
Closed

Update health check if database connection drops #353

wadeking98 opened this issue Mar 21, 2022 · 0 comments · Fixed by #354
Assignees

Comments

@wadeking98
Copy link
Contributor

Issue:

Currently issuer-kit api contains a health check to determine in the initial connection to the database succeeds. However, if the initial connection succeeds and then the database comes offline later, the health check still returns 200 even though the api is no longer connected to the db.

Requested Change:

Update the /health endpoint to respond with 503 if the database is currently disconnected and 200 if the database is currently connected to the api

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

Successfully merging a pull request may close this issue.

1 participant