I have create Detached actor and ran a function meanwhile exited driver.
mport ray
@ray.remote
class Greeter:
def __init__(self, value):
self.value = value
import time
for i in range(100):
time.sleep(1)
print('########', i)
def say_hello(self):
import time
for i in range(100):
time.sleep(1)
print('########', i)
return self.value
a = Greeter.options(lifetime="detached", name="g1").remote("Old Greeting")
a.say_hello.remote()
# Driver exits
Is it supported?