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

feat: check database is available when backend starts #149

Open
eamon0989 opened this issue Oct 28, 2022 · 2 comments
Open

feat: check database is available when backend starts #149

eamon0989 opened this issue Oct 28, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@eamon0989
Copy link
Contributor

When the backend is started, it should check if a database is connected, if not, a warning or error should be shown.

@eamon0989 eamon0989 added the enhancement New feature or request label Oct 28, 2022
@medic-code
Copy link
Contributor

medic-code commented Jan 2, 2023

I'll take this. I've just done a quick search and looks like you can use the docker engine API to know the status of the container is running. So should be relatively simple to ensure that we get that appropriate response and if not to throw an appropriate error message.

@medic-code
Copy link
Contributor

Can I ask do you mean for local development or in production as well ? As the solution I was thinking of is for local development when running the docker container locally. It would some what depend on the architecture of the backend in production to how to implement in prod.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants