From b9774bdf0373a829d5567d70f06b432e1d0a959c Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 26 May 2019 23:21:01 -0400 Subject: [PATCH] Increase wait sleeps in node flush/unflush --- client-common/node.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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