mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-16 10:12:32 -05:00
Create a new task called send_email_v2 so that I can get rid of the from_address in the signature.
This is done to make sure we do not lose any messages in the queue during deployment.
This commit is contained in:
@@ -31,7 +31,7 @@ from app.schemas import (
|
||||
day_schema,
|
||||
unarchived_template_schema
|
||||
)
|
||||
from app.celery.tasks import send_sms, send_email
|
||||
from app.celery.tasks import send_sms, send_email_v2
|
||||
|
||||
notifications = Blueprint('notifications', __name__)
|
||||
|
||||
@@ -384,7 +384,7 @@ def send_notification(notification_type):
|
||||
datetime.utcnow().strftime(DATETIME_FORMAT)
|
||||
), queue='sms')
|
||||
else:
|
||||
send_email.apply_async((
|
||||
send_email_v2.apply_async((
|
||||
service_id,
|
||||
notification_id,
|
||||
'',
|
||||
|
||||
Reference in New Issue
Block a user