mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
Move high volume service id to config
This commit is contained in:
@@ -163,6 +163,8 @@ class Config(object):
|
|||||||
MOU_SIGNED_ON_BEHALF_ON_BEHALF_RECEIPT_TEMPLATE_ID = '522b6657-5ca5-4368-a294-6b527703bd0b'
|
MOU_SIGNED_ON_BEHALF_ON_BEHALF_RECEIPT_TEMPLATE_ID = '522b6657-5ca5-4368-a294-6b527703bd0b'
|
||||||
MOU_NOTIFY_TEAM_ALERT_TEMPLATE_ID = 'd0e66c4c-0c50-43f0-94f5-f85b613202d4'
|
MOU_NOTIFY_TEAM_ALERT_TEMPLATE_ID = 'd0e66c4c-0c50-43f0-94f5-f85b613202d4'
|
||||||
|
|
||||||
|
HIGH_VOLUME_SERVICE = '539d63a1-701d-400d-ab11-f3ee2319d4d4'
|
||||||
|
|
||||||
BROKER_URL = 'sqs://'
|
BROKER_URL = 'sqs://'
|
||||||
BROKER_TRANSPORT_OPTIONS = {
|
BROKER_TRANSPORT_OPTIONS = {
|
||||||
'region': AWS_REGION,
|
'region': AWS_REGION,
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ def process_sms_or_email_notification(*, form, notification_type, api_key, templ
|
|||||||
simulated=simulated
|
simulated=simulated
|
||||||
)
|
)
|
||||||
|
|
||||||
if str(service.id) == '539d63a1-701d-400d-ab11-f3ee2319d4d4' and api_key.key_type == KEY_TYPE_NORMAL \
|
if str(service.id) == current_app.config.get('HIGH_VOLUME_SERVICE') and api_key.key_type == KEY_TYPE_NORMAL \
|
||||||
and notification_type == EMAIL_TYPE:
|
and notification_type == EMAIL_TYPE:
|
||||||
# Put GOV.UK Email notifications onto a queue
|
# Put GOV.UK Email notifications onto a queue
|
||||||
# To take the pressure off the db for API requests put the notification for our high volume service onto a queue
|
# To take the pressure off the db for API requests put the notification for our high volume service onto a queue
|
||||||
|
|||||||
Reference in New Issue
Block a user