From 59d861281eedfec8d517d671955004a16c9b7e4d Mon Sep 17 00:00:00 2001 From: Si-Yuan Date: Wed, 9 Jan 2019 13:23:55 +0800 Subject: [PATCH] Bug fixing: Redis password should be used when reporting errors. (#3724) --- python/ray/monitor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/ray/monitor.py b/python/ray/monitor.py index a37f75de7..b3d908f2b 100644 --- a/python/ray/monitor.py +++ b/python/ray/monitor.py @@ -380,7 +380,9 @@ if __name__ == "__main__": except Exception as e: # Something went wrong, so push an error to all drivers. redis_client = redis.StrictRedis( - host=redis_ip_address, port=redis_port) + host=redis_ip_address, + port=redis_port, + password=args.redis_password) traceback_str = ray.utils.format_error_message(traceback.format_exc()) message = "The monitor failed with the following error:\n{}".format( traceback_str)