mirror of
https://github.com/wassname/ray.git
synced 2026-07-02 16:48:11 +08:00
Replace --redis-address with --address in test, docs, tune, rllib (#5602)
* wip * add tests and tune * add ci * test fix * lint * fix tests * wip * sugar dep
This commit is contained in:
@@ -16,7 +16,7 @@ def test_infeasible_tasks(ray_start_cluster):
|
||||
return
|
||||
|
||||
cluster.add_node(resources={str(0): 100})
|
||||
ray.init(redis_address=cluster.redis_address)
|
||||
ray.init(address=cluster.address)
|
||||
|
||||
# Submit an infeasible task.
|
||||
x_id = f._submit(args=[], kwargs={}, resources={str(1): 1})
|
||||
@@ -30,14 +30,14 @@ def test_infeasible_tasks(ray_start_cluster):
|
||||
driver_script = """
|
||||
import ray
|
||||
|
||||
ray.init(redis_address="{}")
|
||||
ray.init(address="{}")
|
||||
|
||||
@ray.remote(resources={})
|
||||
def f():
|
||||
{}pass # This is a weird hack to insert some blank space.
|
||||
|
||||
f.remote()
|
||||
""".format(cluster.redis_address, "{str(2): 1}", " ")
|
||||
""".format(cluster.address, "{str(2): 1}", " ")
|
||||
|
||||
run_string_as_driver(driver_script)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user