[Java] Fix output parsing in RunManager (#12968)

* Fix output parsing in RunManager

* change log level

Co-authored-by: 灵洵 <fengbin.ffb@antgroup.com>
This commit is contained in:
Kai Yang
2020-12-19 10:22:12 +08:00
committed by GitHub
parent 6ece291f35
commit ac5ea2c13d
3 changed files with 19 additions and 13 deletions
+5 -7
View File
@@ -279,8 +279,7 @@ def get_address_info_from_redis_helper(redis_address,
def get_address_info_from_redis(redis_address,
node_ip_address,
num_retries=5,
redis_password=None,
no_warning=False):
redis_password=None):
counter = 0
while True:
try:
@@ -291,11 +290,10 @@ def get_address_info_from_redis(redis_address,
raise
# Some of the information may not be in Redis yet, so wait a little
# bit.
if not no_warning:
logger.warning(
"Some processes that the driver needs to connect to have "
"not registered with Redis, so retrying. Have you run "
"'ray start' on this node?")
logger.warning(
"Some processes that the driver needs to connect to have "
"not registered with Redis, so retrying. Have you run "
"'ray start' on this node?")
time.sleep(1)
counter += 1