From: Nelson,Thomas(tn1381)(arthurdent3) Date: Wed, 17 Oct 2018 16:55:59 +0000 (-0400) Subject: Add Delay variable to runcql X-Git-Tag: 3.0.23^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F71%2F70671%2F1;p=music.git Add Delay variable to runcql Change-Id: If09930012c443d5b04a70c55a1b315b3f2781ff1 Issue-ID: MUSIC-147 Signed-off-by: Nelson,Thomas(tn1381)(arthurdent3) --- diff --git a/distribution/cassandra_job/runcql.sh b/distribution/cassandra_job/runcql.sh index f935a350..2ffd5f2f 100644 --- a/distribution/cassandra_job/runcql.sh +++ b/distribution/cassandra_job/runcql.sh @@ -2,11 +2,14 @@ if [ -z "$TIMEOUT" ]; then TIMEOUT=10; fi +if [ -z "$DELAY" ]; then + DELAY=60; +fi TO="--request-timeout=$TIMEOUT" if [ $CASS_HOSTNAME ]; then - echo "Sleeping for 60 seconds before running cql"; - sleep 60; + echo "Sleeping for $DELAY seconds before running cql"; + sleep $DELAY; >&2 echo "#############################################" >&2 echo "############## Let run cql's ################" >&2 echo "#############################################"