summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNelson,Thomas(tn1381)(arthurdent3) <tn1381@att.com>2018-10-17 12:55:59 -0400
committerNelson,Thomas(tn1381)(arthurdent3) <tn1381@att.com>2018-10-17 12:55:59 -0400
commit14cb1421d15c4f3ab07180582cbd11f2039f64bd (patch)
tree93c6855f7cde806f904b94ba4ca79c1bac84d03b
parent4a0526db85bc28e3e10c9a0ee98474a24e3dcb4a (diff)
Add Delay variable to runcql
Change-Id: If09930012c443d5b04a70c55a1b315b3f2781ff1 Issue-ID: MUSIC-147 Signed-off-by: Nelson,Thomas(tn1381)(arthurdent3) <tn1381@att.com>
-rw-r--r--distribution/cassandra_job/runcql.sh7
1 files changed, 5 insertions, 2 deletions
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 "#############################################"