Bug fixing: Redis password should be used when reporting errors. (#3724)

This commit is contained in:
Si-Yuan
2019-01-09 13:23:55 +08:00
committed by Robert Nishihara
parent 6bbc667f93
commit 59d861281e
+3 -1
View File
@@ -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)