diff --git a/app/celery/nightly_tasks.py b/app/celery/nightly_tasks.py index d6bee1052..78052da9c 100644 --- a/app/celery/nightly_tasks.py +++ b/app/celery/nightly_tasks.py @@ -73,14 +73,10 @@ def delete_notifications_older_than_retention(): ) -@notify_celery.task(name="delete-sms-notifications") -# @cronitor("delete-sms-notifications") def delete_sms_notifications_older_than_retention(): _delete_notifications_older_than_retention_by_type(NotificationType.SMS) -@notify_celery.task(name="delete-email-notifications") -# @cronitor("delete-email-notifications") def delete_email_notifications_older_than_retention(): _delete_notifications_older_than_retention_by_type(NotificationType.EMAIL) diff --git a/app/config.py b/app/config.py index 2033baed1..18b191e1e 100644 --- a/app/config.py +++ b/app/config.py @@ -316,16 +316,6 @@ class Config(object): "schedule": crontab(hour=8, minute=0), "options": {"queue": QueueNames.PERIODIC}, }, - "delete-sms-notifications": { - "task": "delete-sms-notifications", - "schedule": crontab(hour=8, minute=46), - "options": {"queue": QueueNames.PERIODIC}, - }, - "delete-email-notifications": { - "task": "delete-sms-notifications", - "schedule": crontab(hour=8, minute=17), - "options": {"queue": QueueNames.PERIODIC}, - }, "check-for-services-with-high-failure-rates-or-sending-to-tv-numbers": { "task": "check-for-services-with-high-failure-rates-or-sending-to-tv-numbers", "schedule": crontab(day_of_week="mon-fri", hour=14, minute=30),