Add a task to save-api-sms for high volume services.

When we initially added a new task to persist the notifications for a high volume service we wanted to implement it as quickly as possible, so ignored SMS.
This will allow a high volume service to send SMS, the SMS will be sent to a queue to then persist and send the SMS, similar to emails.

At this point I haven't added a new application to consume the new save-api-sms-tasks. But we can add a separate application or be happy with how the app scales for both email and sms.
This commit is contained in:
Rebecca Law
2020-10-19 13:29:05 +01:00
parent d9ceed55b5
commit 3dee4ad310
7 changed files with 126 additions and 76 deletions

View File

@@ -51,7 +51,7 @@ case $NOTIFY_APP_NAME in
;;
delivery-worker-save-api-notifications)
exec scripts/run_app_paas.sh celery -A run_celery.notify_celery worker --loglevel=INFO --concurrency=11 \
-Q save-api-email-tasks 2> /dev/null
-Q save-api-email-tasks, save-api-sms-tasks 2> /dev/null
;;
delivery-celery-beat)
exec scripts/run_app_paas.sh celery -A run_celery.notify_celery beat --loglevel=INFO