You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But given that the database.Ping() returns an error only on the initial request (i.e. if the database goes down at some point, it will not return an error) the /live endpoint request returns 200 OK even if the database is down.
Are there any plans to fix this, perhaps by using database.Query("SELECT 1") instead of database.Ping()?
Hello,
I'm trying to make use of this library to implement some healthchecks in my application.
My liveness check consists of a database ping check like this:
But given that the
database.Ping()returns an error only on the initial request (i.e. if the database goes down at some point, it will not return an error) the/liveendpoint request returns200 OKeven if the database is down.Are there any plans to fix this, perhaps by using
database.Query("SELECT 1")instead ofdatabase.Ping()?Thanks a lot.