From e9427935219f48442ef7f24c77edbaf0eacb3518 Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Wed, 15 Jun 2016 14:11:17 +0100 Subject: [PATCH] Rename the task so that it is the name we want to use. Next deploy will remove the extra task. --- app/celery/tasks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/celery/tasks.py b/app/celery/tasks.py index 6b92d40c2..7c81e9984 100644 --- a/app/celery/tasks.py +++ b/app/celery/tasks.py @@ -287,13 +287,13 @@ def send_sms(service_id, notification_id, encrypted_notification, created_at): current_app.logger.exception(e) -@notify_celery.task(name="send-email") -def send_email_v1(service_id, notification_id, from_address, +@notify_celery.task(name="send-email-v2") +def send_email_v2(service_id, notification_id, encrypted_notification, created_at, reply_to_addresses=None): send_email(service_id, notification_id, encrypted_notification, created_at, reply_to_addresses=None) -@notify_celery.task(name="send-email-v2") +@notify_celery.task(name="send-email") def send_email(service_id, notification_id, encrypted_notification, created_at, reply_to_addresses=None): task_start = monotonic() notification = encryption.decrypt(encrypted_notification)