mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 12:45:44 +08:00
Add ability to specify worker and driver ports (#7833)
This commit is contained in:
@@ -376,6 +376,13 @@ def test_calling_start_ray_head(call_ray_stop_only):
|
||||
])
|
||||
subprocess.check_output(["ray", "stop"])
|
||||
|
||||
# Test starting Ray with the worker port range specified.
|
||||
subprocess.check_output([
|
||||
"ray", "start", "--head", "--min-worker-port", "12345",
|
||||
"--max-worker-port", "12346"
|
||||
])
|
||||
subprocess.check_output(["ray", "stop"])
|
||||
|
||||
# Test starting Ray with the number of CPUs specified.
|
||||
subprocess.check_output(["ray", "start", "--head", "--num-cpus", "2"])
|
||||
subprocess.check_output(["ray", "stop"])
|
||||
|
||||
Reference in New Issue
Block a user