diff --git a/alerts/lib/config.py b/alerts/lib/config.py index c9f6b6aa..3b99277a 100644 --- a/alerts/lib/config.py +++ b/alerts/lib/config.py @@ -8,16 +8,16 @@ # Contributors: # Anthony Verez averez@mozilla.com -from celery.schedules import crontab +from celery.schedules import crontab, timedelta import time import logging ALERTS = { - 'bro_intel.AlertBroIntel': crontab(minute='*/1'), - 'bro_notice.AlertBroNotice': crontab(minute='*/1'), - 'bruteforce_ssh.AlertBruteforceSsh': crontab(minute='*/1'), - 'cloudtrail.AlertCloudtrail': crontab(minute='*/1'), - 'fail2ban.AlertFail2ban': crontab(minute='*/1'), + 'bro_intel.AlertBroIntel': {'schedule': crontab(minute='*/1')}, + 'bro_notice.AlertBroNotice': {'schedule': crontab(minute='*/1')}, + 'bruteforce_ssh.AlertBruteforceSsh': {'schedule': crontab(minute='*/1')}, + 'cloudtrail.AlertCloudtrail': {'schedule': crontab(minute='*/1')}, + 'fail2ban.AlertFail2ban': {'schedule': crontab(minute='*/1')}, }