You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
490 B
Python
19 lines
490 B
Python
# Copyright (C) 2022 CVAT.ai Corporation
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
from django.apps import AppConfig
|
|
from django.conf import settings
|
|
|
|
from health_check.plugins import plugin_dir
|
|
|
|
class HealthConfig(AppConfig):
|
|
name = 'cvat.apps.health'
|
|
|
|
def ready(self):
|
|
from .backends import OPAHealthCheck, CustomCacheBackend
|
|
plugin_dir.register(OPAHealthCheck)
|
|
|
|
for backend in settings.CACHES:
|
|
plugin_dir.register(CustomCacheBackend, backend=backend)
|