mirror of
https://github.com/GSA/notifications-api.git
synced 2026-05-18 15:55:58 -04:00
Add workers for sms and email sending
We want to have different workers for sending out email and sending out sms. This will enable us to better rate limit ourselves when sending to our providers. For example, we can make sure we only have capacity in the email worker to send at our rate of 500rps to SES. Note, we may in due time need to split the sms sender worker into two different workers, one for each provider. A separate PR will come after this to remove the unsplit `notify-delivery-worker-sender`.
This commit is contained in:
@@ -24,6 +24,14 @@ case $NOTIFY_APP_NAME in
|
||||
exec scripts/run_multi_worker_app_paas.sh celery multi start 3 -c 10 -A run_celery.notify_celery --loglevel=INFO \
|
||||
-Q send-sms-tasks,send-email-tasks
|
||||
;;
|
||||
delivery-worker-sender-sms)
|
||||
exec scripts/run_multi_worker_app_paas.sh celery multi start 3 -c 10 -A run_celery.notify_celery --loglevel=INFO \
|
||||
-Q send-sms-tasks
|
||||
;;
|
||||
delivery-worker-sender-email)
|
||||
exec scripts/run_multi_worker_app_paas.sh celery multi start 3 -c 10 -A run_celery.notify_celery --loglevel=INFO \
|
||||
-Q send-email-tasks
|
||||
;;
|
||||
delivery-worker-periodic)
|
||||
exec scripts/run_app_paas.sh celery -A run_celery.notify_celery worker --loglevel=INFO --concurrency=2 \
|
||||
-Q periodic-tasks 2> /dev/null
|
||||
|
||||
Reference in New Issue
Block a user