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', ]