mirror of
https://github.com/wassname/ray.git
synced 2026-07-19 11:27:32 +08:00
[cli][ray] ray start should error by default if there's already an instance running (#10826)
This commit is contained in:
@@ -178,9 +178,8 @@ def ray_start_object_store_memory(request):
|
||||
@pytest.fixture
|
||||
def call_ray_start(request):
|
||||
parameter = getattr(
|
||||
request, "param",
|
||||
"ray start --head --num-cpus=1 --min-worker-port=0 --max-worker-port=0"
|
||||
)
|
||||
request, "param", "ray start --head --num-cpus=1 --min-worker-port=0 "
|
||||
"--max-worker-port=0 --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