Add a health check view.

Review Request #13252 — Created Aug. 30, 2023 and submitted — Latest diff uploaded

Information

Djblets
release-4.x

Reviewers

This change adds a view implementation that can be used to set up a
health check. It simply checks that the database and cache server are
available, and returns 200 if so and 500 if not (while logging the
error).

Manually set things up to have either the database or cache server fail
and saw that this view returned the correct results.

Changes between revision 2 and 3

orig
1
2
3
4
5
6

Commits

Summary ID Author
Add a health check view.
This change adds a view implementation that can be used to set up a health check. It simply checks that the database and cache server are available, and returns 200 if so and 500 if not (while logging the error). Testing Done: Manually set things up to have either the database or cache server fail and saw that this view returned the correct results.
efd67f56acc9493e824e56597a19b92b62036904 David Trowbridge
Add a health check view.
This change adds a view implementation that can be used to set up a health check. It simply checks that the database and cache server are available, and returns 200 if so and 500 if not (while logging the error). Testing Done: Manually set things up to have either the database or cache server fail and saw that this view returned the correct results.
245b20191004f70a3666272a7ae19fe78b021fdf David Trowbridge
djblets/util/views.py
Loading...