Skip to content

Commit

Permalink
Fix "scale.sh: line 12: msg_count: command not found"
Browse files Browse the repository at this point in the history
  • Loading branch information
msrb committed Nov 22, 2017
1 parent a0e7746 commit 09d692a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scale.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ queue_name=${DEPLOYMENT_PREFIX}_${SQS_QUEUE_NAME}

while true; do
# get number of messages in the given queue
msg_count replicas <<< $(./sqs_status.py -q ${queue_name})
read msg_count replicas <<< $(./sqs_status.py -q ${queue_name})

echo "[$(date -u)] Number of messages in ${queue_name} is ${msg_count}. Replicas needed: ${replicas}."
set -x
Expand Down

0 comments on commit 09d692a

Please sign in to comment.