14 lines
208 B
Python
14 lines
208 B
Python
import ray
|
|
from ray import serve
|
|
|
|
signal = ray.get_actor("signal123")
|
|
ray.get(signal.wait.remote())
|
|
|
|
|
|
@serve.deployment(ray_actor_options={"num_cpus": 0.1})
|
|
def f():
|
|
return "hello world"
|
|
|
|
|
|
app = f.bind()
|