Increase wait sleeps in node flush/unflush

This commit is contained in:
Joshua Boniface 2019-05-26 23:21:01 -04:00
parent 14e9ba892c
commit b9774bdf03
1 changed files with 4 additions and 4 deletions

View File

@ -146,9 +146,9 @@ def flush_node(zk_conn, node, wait):
click.echo(retmsg)
retmsg = ""
if lock_wait:
time.sleep(1)
time.sleep(2)
while zkhandler.readdata(zk_conn, '/locks/flush_lock') == 'True':
time.sleep(1)
time.sleep(2)
click.echo('Previous flush completed. Proceeding with flush.')
# Add the new domain to Zookeeper
@ -158,9 +158,9 @@ def flush_node(zk_conn, node, wait):
# Wait cannot be triggered from the API
if wait:
time.sleep(1)
time.sleep(2)
while zkhandler.readdata(zk_conn, '/locks/flush_lock') == 'True':
time.sleep(1)
time.sleep(2)
return True, retmsg