Remove the extra task created to handle the change to the send_email signature

This commit is contained in:
Rebecca Law
2016-06-15 15:28:53 +01:00
parent 5a66884f0e
commit 0200d3ab11

View File

@@ -288,12 +288,6 @@ def send_sms(service_id, notification_id, encrypted_notification, created_at):
@notify_celery.task(name="send-email")
def send_email_v1(service_id, notification_id, from_address,
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")
def send_email(service_id, notification_id, encrypted_notification, created_at, reply_to_addresses=None):
task_start = monotonic()
notification = encryption.decrypt(encrypted_notification)