mirror of
https://github.com/wassname/ray.git
synced 2026-07-13 17:45:08 +08:00
Deprecate num_workers argument to ray.init and ray start. (#3114)
* Remove num_workers argument. * Fix * Fix
This commit is contained in:
committed by
Philipp Moritz
parent
9868af4c7c
commit
32f0d6b77e
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user