diff --git a/app/celery/nightly_tasks.py b/app/celery/nightly_tasks.py index 01bdbbd67..9ca29951d 100644 --- a/app/celery/nightly_tasks.py +++ b/app/celery/nightly_tasks.py @@ -30,8 +30,8 @@ from app.models import FactProcessingTime from app.utils import get_midnight_in_utc, utc_now -@notify_celery.task(name="remove_sms_email_jobs") -@cronitor("remove_sms_email_jobs") +@notify_celery.task(name="remove-sms-email-jobs") +@cronitor("remove-sms-email-jobs") def remove_sms_email_csv_files(): _remove_csv_files([NotificationType.EMAIL, NotificationType.SMS]) diff --git a/app/config.py b/app/config.py index 8a9d817bf..18b191e1e 100644 --- a/app/config.py +++ b/app/config.py @@ -311,8 +311,8 @@ class Config(object): "schedule": crontab(hour=4, minute=5), "options": {"queue": QueueNames.PERIODIC}, }, - "remove_sms_email_jobs": { - "task": "remove_sms_email_jobs", + "remove-sms-email-jobs": { + "task": "remove-sms-email-jobs", "schedule": crontab(hour=8, minute=0), "options": {"queue": QueueNames.PERIODIC}, },