mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
Revert "Send one-off messages as fast as possible"
This commit is contained in:
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user