diff --git a/client-common/node.py b/client-common/node.py index af4fa6ad..582bdcd8 100644 --- a/client-common/node.py +++ b/client-common/node.py @@ -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