mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 08:51:30 -05:00
Merge pull request #423 from alphagov/rename-task
Rename the task so that it is the name we want to use.
This commit is contained in:
@@ -287,13 +287,13 @@ def send_sms(service_id, notification_id, encrypted_notification, created_at):
|
|||||||
current_app.logger.exception(e)
|
current_app.logger.exception(e)
|
||||||
|
|
||||||
|
|
||||||
@notify_celery.task(name="send-email")
|
@notify_celery.task(name="send-email-v2")
|
||||||
def send_email_v1(service_id, notification_id, from_address,
|
def send_email_v2(service_id, notification_id,
|
||||||
encrypted_notification, created_at, reply_to_addresses=None):
|
encrypted_notification, created_at, reply_to_addresses=None):
|
||||||
send_email(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):
|
def send_email(service_id, notification_id, encrypted_notification, created_at, reply_to_addresses=None):
|
||||||
task_start = monotonic()
|
task_start = monotonic()
|
||||||
notification = encryption.decrypt(encrypted_notification)
|
notification = encryption.decrypt(encrypted_notification)
|
||||||
|
|||||||
Reference in New Issue
Block a user