Skip to content

Commit

Permalink
Bug fixing: Redis password should be used when reporting errors. (ray…
Browse files Browse the repository at this point in the history
  • Loading branch information
suquark authored and robertnishihara committed Jan 9, 2019
1 parent 6bbc667 commit 59d8612
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/ray/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,9 @@ def run(self):
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)
Expand Down

0 comments on commit 59d8612

Please sign in to comment.