Revert "Send one-off messages as fast as possible"

This commit is contained in:
Chris Hill-Scott
2018-03-01 10:17:59 +00:00
committed by GitHub
parent f0d91bf1c5
commit 9524e34ce1
2 changed files with 9 additions and 7 deletions

View File

@@ -12,6 +12,7 @@ from app.notifications.process_notifications import (
)
from app.models import (
KEY_TYPE_NORMAL,
PRIORITY,
SMS_TYPE,
EMAIL_TYPE,
)
@@ -74,10 +75,11 @@ def send_one_off_notification(service_id, post_data):
reply_to_text=reply_to
)
queue_name = QueueNames.PRIORITY if template.process_type == PRIORITY else None
send_notification_to_queue(
notification=notification,
research_mode=service.research_mode,
queue=QueueNames.PRIORITY
queue=queue_name
)
return {'id': str(notification.id)}