Files
2026-07-13 13:17:40 +08:00

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()