mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:05:17 -05:00
add separate send-sms and send-email queues
we're reading from those two queues as well as teh existing send queue, however for now we don't send anything to them
This commit is contained in:
@@ -182,7 +182,7 @@ def send_sms(self,
|
||||
|
||||
provider_tasks.deliver_sms.apply_async(
|
||||
[str(saved_notification.id)],
|
||||
queue=QueueNames.SEND if not service.research_mode else QueueNames.RESEARCH_MODE
|
||||
queue=QueueNames.SEND_COMBINED if not service.research_mode else QueueNames.RESEARCH_MODE
|
||||
)
|
||||
|
||||
current_app.logger.info(
|
||||
@@ -227,7 +227,7 @@ def send_email(self,
|
||||
|
||||
provider_tasks.deliver_email.apply_async(
|
||||
[str(saved_notification.id)],
|
||||
queue=QueueNames.SEND if not service.research_mode else QueueNames.RESEARCH_MODE
|
||||
queue=QueueNames.SEND_COMBINED if not service.research_mode else QueueNames.RESEARCH_MODE
|
||||
)
|
||||
|
||||
current_app.logger.info("Email {} created at {}".format(saved_notification.id, created_at))
|
||||
|
||||
Reference in New Issue
Block a user