Skip to content

Commit

Permalink
Deprecate redis_address argument in favor of address. (#6654)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertnishihara committed Jan 3, 2020
1 parent d39e76f commit 92e44a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/ray/scripts/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@ def start(node_ip_address, redis_address, address, redis_port,
plasma_store_socket_name, raylet_socket_name, temp_dir, include_java,
java_worker_options, load_code_from_local, use_pickle,
internal_config):
if redis_address is not None:
raise DeprecationWarning("The --redis-address argument is "
"deprecated. Please use --address instead.")

# Convert hostnames to numerical IP address.
if node_ip_address is not None:
node_ip_address = services.address_to_ip(node_ip_address)
Expand Down
4 changes: 4 additions & 0 deletions python/ray/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,10 @@ def init(address=None,
arguments is passed in.
"""

if redis_address is not None:
raise DeprecationWarning("The redis_address argument is deprecated. "
"Please use address instead.")

if redis_address is not None or address is not None:
redis_address, _, _ = services.validate_redis_address(
address, redis_address)
Expand Down

0 comments on commit 92e44a5

Please sign in to comment.