From 1bb5fdf5c8f9cb98b25d09b70f41ee328bfcd23d Mon Sep 17 00:00:00 2001 From: Jason Moore Date: Tue, 23 Jan 2024 16:31:09 +0800 Subject: [PATCH] Fix cron scripts --- appmonitor/management/commands/notification_email_checks.py | 2 +- appmonitor/settings.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/appmonitor/management/commands/notification_email_checks.py b/appmonitor/management/commands/notification_email_checks.py index 6fb67c2..1399ec3 100644 --- a/appmonitor/management/commands/notification_email_checks.py +++ b/appmonitor/management/commands/notification_email_checks.py @@ -12,7 +12,7 @@ class Command(BaseCommand): def handle(self, *args, **options): print ("Running Notificaiton Job") - checks = utils.get_checks() + checks = utils.get_checks(None,None) manual_checks = models.ManualCheck.objects.filter(active=True) t = email_templates.AppCheckList() to_addresses=[] diff --git a/appmonitor/settings.py b/appmonitor/settings.py index 898efe5..9d55e99 100644 --- a/appmonitor/settings.py +++ b/appmonitor/settings.py @@ -164,7 +164,8 @@ CRON_CLASSES = [ 'appmonitor.cron.CronJobNotificationEmailWeekDays', 'appmonitor.cron.CronJobNotificationEmailWeekends', - 'appmonitor.cron.CronJobDBArchive' + 'appmonitor_client.cron.CronJobAppMonitorClient', + 'appmonitor.cron.CronJobDBArchive', ]