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 4 and 5

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.
efe09b9953e81acaea0cbcf1f33abee03ba210f9 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.
4d5d3a4a2c418745d22add7386cd5f0489f1d995 David Trowbridge
djblets/util/views.py
Loading...