shiori icon indicating copy to clipboard operation
shiori copied to clipboard

Database connections could wait for availability instead of failing directly

Open fmartingr opened this issue 1 year ago • 0 comments

Databases could use a Wait() where they try to check for database readyness before conecting, instead of just connecting directly (and failing if not ready).

  • This should be configurable behind a flag (--wait-for-db that defaults to false)
  • While doing so, figure out a way to propagate the database state to other shiori domains, so we can create a proper liveness endpoint that returns a non-ok status code if the database is not ready.

From https://github.com/go-shiori/shiori/discussions/587

fmartingr avatar Mar 05 '23 07:03 fmartingr