Added send delivery status to SES callbacks

This commit is contained in:
venusbb
2017-12-01 21:13:01 +00:00
parent a604fb82bb
commit 096657799c
2 changed files with 16 additions and 4 deletions

View File

@@ -12,6 +12,8 @@ from app.dao import (
)
from app.celery.statistics_tasks import create_outcome_notification_statistic_tasks
from app.notifications.process_client_response import validate_callback_data
from app.celery.service_callback_tasks import send_delivery_status_to_service
from app.config import QueueNames
def process_ses_response(ses_request):
@@ -75,7 +77,7 @@ def process_ses_response(ses_request):
)
create_outcome_notification_statistic_tasks(notification)
send_delivery_status_to_service.apply_async([notification.id], queue=QueueNames.NOTIFY)
return
except KeyError: