diff --git a/app/celery/nightly_tasks.py b/app/celery/nightly_tasks.py index ae8c68992..65b9a94d8 100644 --- a/app/celery/nightly_tasks.py +++ b/app/celery/nightly_tasks.py @@ -65,9 +65,9 @@ def _remove_csv_files(job_types): @notify_celery.task(name="delete-notifications-older-than-retention") def delete_notifications_older_than_retention(): - delete_email_notifications_older_than_retention.apply_async(queue=QueueNames.PERIODIC) - delete_sms_notifications_older_than_retention.apply_async(queue=QueueNames.PERIODIC) - delete_letter_notifications_older_than_retention.apply_async(queue=QueueNames.PERIODIC) + delete_email_notifications_older_than_retention.apply_async(queue=QueueNames.REPORTING) + delete_sms_notifications_older_than_retention.apply_async(queue=QueueNames.REPORTING) + delete_letter_notifications_older_than_retention.apply_async(queue=QueueNames.REPORTING) @notify_celery.task(name="delete-sms-notifications") diff --git a/app/config.py b/app/config.py index 177e78113..ab5a08b27 100644 --- a/app/config.py +++ b/app/config.py @@ -267,7 +267,7 @@ class Config(object): 'delete-notifications-older-than-retention': { 'task': 'delete-notifications-older-than-retention', 'schedule': crontab(hour=3, minute=0), # after 'create-nightly-notification-status' - 'options': {'queue': QueueNames.PERIODIC} + 'options': {'queue': QueueNames.REPORTING} }, 'delete-inbound-sms': { 'task': 'delete-inbound-sms',