Deprecate num_workers argument to ray.init and ray start. (#3114)

* Remove num_workers argument.

* Fix

* Fix
This commit is contained in:
Robert Nishihara
2018-10-28 20:12:49 -07:00
committed by Philipp Moritz
parent 9868af4c7c
commit 32f0d6b77e
17 changed files with 31 additions and 72 deletions
+4 -8
View File
@@ -272,10 +272,6 @@ def test_calling_start_ray_head():
run_and_get_output(["ray", "start", "--head"])
subprocess.Popen(["ray", "stop"]).wait()
# Test starting Ray with a number of workers specified.
run_and_get_output(["ray", "start", "--head", "--num-workers", "20"])
subprocess.Popen(["ray", "stop"]).wait()
# Test starting Ray with a redis port specified.
run_and_get_output(["ray", "start", "--head", "--redis-port", "6379"])
subprocess.Popen(["ray", "stop"]).wait()
@@ -315,10 +311,10 @@ def test_calling_start_ray_head():
# Test starting Ray with all arguments specified.
run_and_get_output([
"ray", "start", "--head", "--num-workers", "2", "--redis-port",
"6379", "--redis-shard-ports", "6380,6381,6382",
"--object-manager-port", "12345", "--num-cpus", "2", "--num-gpus",
"0", "--redis-max-clients", "100", "--resources", "{\"Custom\": 1}"
"ray", "start", "--head", "--redis-port", "6379",
"--redis-shard-ports", "6380,6381,6382", "--object-manager-port",
"12345", "--num-cpus", "2", "--num-gpus", "0",
"--redis-max-clients", "100", "--resources", "{\"Custom\": 1}"
])
subprocess.Popen(["ray", "stop"]).wait()