notify-512: get daily message limit from notification_utils

This commit is contained in:
Kenneth Kehl
2023-06-19 11:05:09 -07:00
parent 59f4574af8
commit 3f8196164e
3 changed files with 242 additions and 245 deletions

View File

@@ -2,6 +2,7 @@ import json
from datetime import timedelta
from os import getenv, path
import notifications_utils
from celery.schedules import crontab
from kombu import Exchange, Queue
@@ -273,7 +274,7 @@ class Config(object):
FREE_SMS_TIER_FRAGMENT_COUNT = 250000
DAILY_MESSAGE_LIMIT = 5000
DAILY_MESSAGE_LIMIT = notifications_utils.DAILY_MESSAGE_LIMIT
HIGH_VOLUME_SERVICE = json.loads(getenv('HIGH_VOLUME_SERVICE', '[]'))