diff --git a/scripts/aws_start_app.sh b/scripts/aws_start_app.sh index 7be657a03..47f7103ba 100755 --- a/scripts/aws_start_app.sh +++ b/scripts/aws_start_app.sh @@ -12,6 +12,18 @@ then sudo service notifications-api-celery-worker start fi +if [ -e "/etc/init/notifications-api-celery-worker-sender.conf" ] +then + echo "Starting celery worker" + sudo service notifications-api-celery-worker-sender start +fi + +if [ -e "/etc/init/notifications-api-celery-worker-db.conf" ] +then + echo "Starting celery worker" + sudo service notifications-api-celery-worker-db start +fi + if [ -e "/etc/init/notifications-api-celery-beat.conf" ] then echo "Starting celery beat" diff --git a/scripts/aws_stop_app.sh b/scripts/aws_stop_app.sh index 2f5660ae1..3f9735d4b 100755 --- a/scripts/aws_stop_app.sh +++ b/scripts/aws_stop_app.sh @@ -19,7 +19,7 @@ fi if [ -e "/etc/init/notifications-api-celery-beat.conf" ]; then echo "stopping notifications-api-celery-beat" if sudo service notifications-api-celery-beat stop; then - echo "notifications-api stopped" + echo "notifications-api beat stopped" else error_exit "Could not stop notifications-celery-beat" fi @@ -28,8 +28,26 @@ fi if [ -e "/etc/init/notifications-api-celery-worker.conf" ]; then echo "stopping notifications-api-celery-worker" if sudo service notifications-api-celery-worker stop; then - echo "notifications-api stopped" + echo "notifications-api worker stopped" else error_exit "Could not stop notifications-celery-worker" fi fi + +if [ -e "/etc/init/notifications-api-celery-worker-sender.conf" ]; then + echo "stopping notifications-api-celery-worker-sender" + if sudo service notifications-api-celery-worker-sender stop; then + echo "notifications-api sender worker stopped" + else + error_exit "Could not stop notifications-celery-worker-sender" + fi +fi + +if [ -e "/etc/init/notifications-api-celery-worker-db.conf" ]; then + echo "stopping notifications-api-celery-worker-db" + if sudo service notifications-api-celery-worker-db stop; then + echo "notifications-api db worker stopped" + else + error_exit "Could not stop notifications-celery-worker-db" + fi +fi