import ray
import ray.util
from ray.util.client import ray as rayclient
ray.util.connect("127.0.0.1:10001")
if rayclient.is_connected():
print("disconnecting...")
ray.util.disconnect()
ray.util.connect('127.0.0.1:10001')
@ray.remote
def f(x):
return x ** x
print(ray.get(f.remote(2)))
It works for me, so I am not sure what is going on. Can you call ray install-nightly and rerun this?