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.

Diff Revision 5

This is not the most recent revision of the diff. The latest diff is revision 6. See what's changed.

orig
1
2
3
4
5
6

Commits

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