Skip to content

Commit

Permalink
Adds healthcheck back and remove removed checks
Browse files Browse the repository at this point in the history
  • Loading branch information
seijihg committed Jan 31, 2024
1 parent f1a3e97 commit 485b37b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions conf/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
"django.contrib.staticfiles",
"mail",
"background_task",
# This is app custome healthcheck app and health_check is django-health-check
"healthcheck",
"health_check",
"health_check.db",
"health_check.cache",
Expand Down
2 changes: 0 additions & 2 deletions healthcheck/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ def ready(self):
from .checks import (
MailboxAuthenticationHealthCheck,
LicencePayloadsHealthCheck,
ManageInboxTaskHealthCheck,
PendingMailHealthCheck,
)

plugin_dir.register(MailboxAuthenticationHealthCheck)
plugin_dir.register(LicencePayloadsHealthCheck)
plugin_dir.register(ManageInboxTaskHealthCheck)
plugin_dir.register(PendingMailHealthCheck)
3 changes: 2 additions & 1 deletion healthcheck/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@

from django.conf import settings
from django.utils import timezone

from health_check.backends import BaseHealthCheckBackend
from health_check.exceptions import HealthCheckException

from mail.enums import ReceptionStatusEnum
from mail.libraries.routing_controller import get_hmrc_to_dit_mailserver, get_spire_to_dit_mailserver
from mail.models import LicencePayload, Mail


logger = logging.getLogger(__name__)


Expand Down

0 comments on commit 485b37b

Please sign in to comment.