mirror of
https://github.com/wassname/ray.git
synced 2026-08-01 12:51:09 +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:
@@ -25,7 +25,7 @@ def _test_cleanup_on_driver_exit(num_redis_shards):
|
||||
lines = [m.strip() for m in output.split("\n")]
|
||||
init_cmd = [m for m in lines if m.startswith("ray.init")]
|
||||
assert 1 == len(init_cmd)
|
||||
redis_address = init_cmd[0].split("redis_address=\"")[-1][:-2]
|
||||
address = init_cmd[0].split("address=\"")[-1][:-2]
|
||||
max_attempts_before_failing = 100
|
||||
# Wait for monitor.py to start working.
|
||||
time.sleep(2)
|
||||
@@ -38,7 +38,7 @@ def _test_cleanup_on_driver_exit(num_redis_shards):
|
||||
def Driver(success):
|
||||
success.value = True
|
||||
# Start driver.
|
||||
ray.init(redis_address=redis_address)
|
||||
ray.init(address=address)
|
||||
summary_start = StateSummary()
|
||||
if (0, 1) != summary_start:
|
||||
success.value = False
|
||||
@@ -81,7 +81,7 @@ def _test_cleanup_on_driver_exit(num_redis_shards):
|
||||
# Just make sure Driver() is run and succeeded.
|
||||
assert success.value
|
||||
# Check that objects, tasks, and functions are cleaned up.
|
||||
ray.init(redis_address=redis_address)
|
||||
ray.init(address=address)
|
||||
attempts = 0
|
||||
while (0, 1) != StateSummary():
|
||||
time.sleep(0.1)
|
||||
|
||||
Reference in New Issue
Block a user