11Settings
22========
33
4- Settings can be configured via the `` HEALTH_CHECK ` ` dictionary.
4+ Settings can be configured via the `HEALTH_CHECK ` dictionary.
55
66.. data :: WARNINGS_AS_ERRORS
77
88 Treats :class: `ServiceWarning ` as errors, meaning they will cause the views
9- to respond with a 500 status code. Default is `` True ` `. If set to
10- `` False ` ` warnings will be displayed in the template on in the JSON
9+ to respond with a 500 status code. Default is `True `. If set to
10+ `False ` warnings will be displayed in the template on in the JSON
1111 response but the status code will remain a 200.
1212
1313Security
@@ -42,13 +42,13 @@ You can still use any uptime bot that is URL based while enjoying token protecti
4242 Do NOT use Django's `SECRET_KEY ` setting. This should never be exposed,
4343 to any third party. Not even your trusted uptime bot.
4444
45- `` psutil ` `
46- ----------
45+ `psutil `
46+ --------
4747
4848The following default settings will be used to check for disk and memory
4949utilization. If you would prefer different thresholds, you can add the dictionary
5050below to your Django settings file and adjust the values accordingly. If you want
51- to disable any of these checks, set its value to `` None ` `.
51+ to disable any of these checks, set its value to `None `.
5252
5353.. code :: python
5454
@@ -72,6 +72,7 @@ exceeds 90% or available memory drops below 100 MB.
7272
7373Celery Health Check
7474-------------------
75+
7576Using `django.settings ` you may exert more fine-grained control over the behavior of the celery health check
7677
7778.. list-table :: Additional Settings
@@ -84,13 +85,13 @@ Using `django.settings` you may exert more fine-grained control over the behavio
8485 - Description
8586 * - `HEALTHCHECK_CACHE_KEY `
8687 - String
87- - djangohealtcheck_test
88+ - ` djangohealtcheck_test `
8889 - Specifies the name of the key to write to and read from to validate that the cache is working.
8990 * - `HEALTHCHECK_CELERY_QUEUE_TIMEOUT `
9091 - Number
91- - 3
92+ - ` 3 `
9293 - Specifies the maximum amount of time a task may spend in the queue before being automatically revoked with a `TaskRevokedError `.
9394 * - `HEALTHCHECK_CELERY_RESULT_TIMEOUT `
9495 - Number
95- - 3
96+ - ` 3 `
9697 - Specifies the maximum total time for a task to complete and return a result, including queue time.
0 commit comments