[cli][ray] ray start should error by default if there's already an instance running (#10826)

This commit is contained in:
Keqiu Hu
2020-09-24 10:29:59 -05:00
committed by GitHub
parent 842861b4fc
commit 46a560e876
6 changed files with 64 additions and 36 deletions
+2 -3
View File
@@ -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))