diff --git a/scripts/run_celery.sh b/scripts/run_celery.sh index 2b3d4a1bc0..46146203ac 100755 --- a/scripts/run_celery.sh +++ b/scripts/run_celery.sh @@ -5,7 +5,8 @@ set -e # Check and see if this is running in K8s and if so, wait for cloudwatch agent -if [[ -z "${STATSD_HOST}" ]]; then +if [[ ! -z "${STATSD_HOST}" ]]; then + echo "Initializing... Waiting for CWAgent to become ready." while : do diff --git a/scripts/run_celery_no_sms_sending.sh b/scripts/run_celery_no_sms_sending.sh index f0fe622681..9b948e53d4 100755 --- a/scripts/run_celery_no_sms_sending.sh +++ b/scripts/run_celery_no_sms_sending.sh @@ -7,7 +7,7 @@ set -e # Check and see if this is running in K8s and if so, wait for cloudwatch agent -if [[ -z "${STATSD_HOST}" ]]; then +if [[ ! -z "${STATSD_HOST}" ]]; then echo "Initializing... Waiting for CWAgent to become ready." while : do diff --git a/scripts/run_celery_send_sms.sh b/scripts/run_celery_send_sms.sh index ee0101cdd4..7146d46b0c 100755 --- a/scripts/run_celery_send_sms.sh +++ b/scripts/run_celery_send_sms.sh @@ -3,7 +3,7 @@ # runs celery with only the send-sms-* queues set -e -if [[ -z "${STATSD_HOST}" ]]; then +if [[ ! -z "${STATSD_HOST}" ]]; then echo "Initializing... Waiting for CWAgent to become ready." while : do diff --git a/scripts/run_celery_sms.sh b/scripts/run_celery_sms.sh index 0afca890d2..0eac65942a 100755 --- a/scripts/run_celery_sms.sh +++ b/scripts/run_celery_sms.sh @@ -4,7 +4,8 @@ set -e -if [[ -z "${STATSD_HOST}" ]]; then + +if [[ ! -z "${STATSD_HOST}" ]]; then echo "Initializing... Waiting for CWAgent to become ready." while : do