Skip to content

Commit

Permalink
Merge branch 'master' into LTD-4630-background-task-cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
saruniitr committed Feb 2, 2024
2 parents 2a5264e + 37efe50 commit 0b7f56f
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 @@ -36,6 +36,8 @@
"django.contrib.messages",
"django.contrib.staticfiles",
"mail",
# healthcheck app is for custom healthchecks in this app, 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 0b7f56f

Please sign in to comment.