diff --git a/python/ray/scripts/scripts.py b/python/ray/scripts/scripts.py index 443914859..7c986b1a9 100644 --- a/python/ray/scripts/scripts.py +++ b/python/ray/scripts/scripts.py @@ -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) diff --git a/python/ray/worker.py b/python/ray/worker.py index 0ab13218a..7a6382767 100644 --- a/python/ray/worker.py +++ b/python/ray/worker.py @@ -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)