mirror of
https://github.com/wassname/ray.git
synced 2026-07-10 20:19:06 +08:00
Add ability to specify worker and driver ports (#8071)
This commit is contained in:
@@ -153,7 +153,10 @@ def ray_start_object_store_memory(request):
|
||||
|
||||
@pytest.fixture
|
||||
def call_ray_start(request):
|
||||
parameter = getattr(request, "param", "ray start --head --num-cpus=1")
|
||||
parameter = getattr(
|
||||
request, "param",
|
||||
"ray start --head --num-cpus=1 --min-worker-port=0 --max-worker-port=0"
|
||||
)
|
||||
command_args = parameter.split(" ")
|
||||
out = ray.utils.decode(
|
||||
subprocess.check_output(command_args, stderr=subprocess.STDOUT))
|
||||
|
||||
Reference in New Issue
Block a user