Skip to content

Commit

Permalink
FIX-#3744: Align default value of REDIS_PASSWORD with Ray (#3745)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Prutskov <alexey.prutskov@intel.com>
  • Loading branch information
prutskov committed Dec 1, 2021
1 parent 72a3e51 commit f79cb85
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion modin/core/execution/ray/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
GpuCount,
Memory,
NPartitions,
ValueSource,
)


Expand Down Expand Up @@ -113,7 +114,16 @@ def initialize_ray(
if not ray.is_initialized() or override_is_cluster:
cluster = override_is_cluster or IsRayCluster.get()
redis_address = override_redis_address or RayRedisAddress.get()
redis_password = override_redis_password or RayRedisPassword.get()
redis_password = (
(
ray.ray_constants.REDIS_DEFAULT_PASSWORD
if cluster
else RayRedisPassword.get()
)
if override_redis_password is None
and RayRedisPassword.get_value_source() == ValueSource.DEFAULT
else override_redis_password or RayRedisPassword.get()
)

if cluster:
# We only start ray in a cluster setting for the head node.
Expand Down

0 comments on commit f79cb85

Please sign in to comment.