mirror of
https://github.com/wassname/ray.git
synced 2026-07-23 13:10:11 +08:00
[Core] Fix ray start failure to due to bug of redis address detection (#11735)
* Fix ray start failure to due redis address detection bug * Address comment
This commit is contained in:
@@ -18,6 +18,7 @@ import ray.cluster_utils
|
||||
import ray.test_utils
|
||||
from ray import resource_spec
|
||||
import setproctitle
|
||||
import subprocess
|
||||
|
||||
from ray.test_utils import (check_call_ray, RayTestTimeoutException,
|
||||
wait_for_condition, wait_for_num_actors)
|
||||
@@ -522,6 +523,12 @@ def test_export_after_shutdown(ray_start_regular):
|
||||
ray.get(export_definitions_from_worker.remote(f, Actor))
|
||||
|
||||
|
||||
def test_ray_start_and_stop():
|
||||
for i in range(10):
|
||||
subprocess.check_call(["ray", "start", "--head"])
|
||||
subprocess.check_call(["ray", "stop"])
|
||||
|
||||
|
||||
def test_invalid_unicode_in_worker_log(shutdown_only):
|
||||
info = ray.init(num_cpus=1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user