mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
SMS provider fixes to config
Disable the method that could accidentally set sms to go to non-sns provider until they are completely removed
This commit is contained in:
@@ -121,8 +121,9 @@ class Config(object):
|
|||||||
FIRETEXT_INTERNATIONAL_API_KEY = getenv("FIRETEXT_INTERNATIONAL_API_KEY", "placeholder")
|
FIRETEXT_INTERNATIONAL_API_KEY = getenv("FIRETEXT_INTERNATIONAL_API_KEY", "placeholder")
|
||||||
# these should always add up to 100%
|
# these should always add up to 100%
|
||||||
SMS_PROVIDER_RESTING_POINTS = {
|
SMS_PROVIDER_RESTING_POINTS = {
|
||||||
'mmg': 50,
|
'sns': 100,
|
||||||
'firetext': 50
|
'mmg': 0,
|
||||||
|
'firetext': 0
|
||||||
}
|
}
|
||||||
FIRETEXT_INBOUND_SMS_AUTH = json.loads(getenv('FIRETEXT_INBOUND_SMS_AUTH', '[]'))
|
FIRETEXT_INBOUND_SMS_AUTH = json.loads(getenv('FIRETEXT_INBOUND_SMS_AUTH', '[]'))
|
||||||
MMG_INBOUND_SMS_AUTH = json.loads(getenv('MMG_INBOUND_SMS_AUTH', '[]'))
|
MMG_INBOUND_SMS_AUTH = json.loads(getenv('MMG_INBOUND_SMS_AUTH', '[]'))
|
||||||
@@ -214,11 +215,11 @@ class Config(object):
|
|||||||
'schedule': timedelta(minutes=66),
|
'schedule': timedelta(minutes=66),
|
||||||
'options': {'queue': QueueNames.PERIODIC}
|
'options': {'queue': QueueNames.PERIODIC}
|
||||||
},
|
},
|
||||||
'switch-current-sms-provider-on-slow-delivery': {
|
# 'switch-current-sms-provider-on-slow-delivery': {
|
||||||
'task': 'switch-current-sms-provider-on-slow-delivery',
|
# 'task': 'switch-current-sms-provider-on-slow-delivery',
|
||||||
'schedule': crontab(), # Every minute
|
# 'schedule': crontab(), # Every minute
|
||||||
'options': {'queue': QueueNames.PERIODIC}
|
# 'options': {'queue': QueueNames.PERIODIC}
|
||||||
},
|
# },
|
||||||
'check-job-status': {
|
'check-job-status': {
|
||||||
'task': 'check-job-status',
|
'task': 'check-job-status',
|
||||||
'schedule': crontab(),
|
'schedule': crontab(),
|
||||||
|
|||||||
Reference in New Issue
Block a user