mirror of
https://github.com/wassname/ray.git
synced 2026-07-10 00:35:08 +08:00
Remove public facing references to --redis-address. (#6631)
This commit is contained in:
@@ -156,11 +156,11 @@ def call_ray_start(request):
|
||||
out = ray.utils.decode(
|
||||
subprocess.check_output(command_args, stderr=subprocess.STDOUT))
|
||||
# Get the redis address from the output.
|
||||
redis_substring_prefix = "redis_address=\""
|
||||
redis_substring_prefix = "--address='"
|
||||
address_location = (
|
||||
out.find(redis_substring_prefix) + len(redis_substring_prefix))
|
||||
address = out[address_location:]
|
||||
address = address.split("\"")[0]
|
||||
address = address.split("'")[0]
|
||||
|
||||
yield address
|
||||
|
||||
|
||||
Reference in New Issue
Block a user