diff options
author | Bharath Balasubramanian <bharathb@research.att.com> | 2018-10-17 17:06:32 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-10-17 17:06:32 +0000 |
commit | 934d5c4606efe53428ae8645d1c6b87abed8cab3 (patch) | |
tree | 4e619220d53bfa423b0d4425082fa24db4bbe781 /distribution/cassandra_job | |
parent | 9545cc70a4e86943ada2013027e91382eba3dfb6 (diff) | |
parent | 14cb1421d15c4f3ab07180582cbd11f2039f64bd (diff) |
Merge "Add Delay variable to runcql"3.0.233.0.1-ONAP
Diffstat (limited to 'distribution/cassandra_job')
-rw-r--r-- | distribution/cassandra_job/runcql.sh | 7 |
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 "#############################################" |