We may want to add additional heartbeat checks, particularly depending on the context (e.g. different environments). This is meant to be a start at enabling a more plug-in style heartbeat check that provides more detailed diagnostics if desired.
18 lines
420 B
Python
18 lines
420 B
Python
"""
|
|
Configuration defaults for the heartbeat djangoapp
|
|
|
|
Configures what checks to run by default in normal and "extended"/heavy mode,
|
|
as well as providing settings for the default checks themselves
|
|
"""
|
|
|
|
HEARTBEAT_DEFAULT_CHECKS = [
|
|
'.default_checks.check_modulestore',
|
|
'.default_checks.check_database',
|
|
]
|
|
|
|
HEARTBEAT_EXTENDED_DEFAULT_CHECKS = (
|
|
'.default_checks.check_celery',
|
|
)
|
|
|
|
HEARTBEAT_CELERY_TIMEOUT = 5
|