ray.serve.handle.RayServeHandle.remote
ray.serve.handle.RayServeHandle.remote#
- RayServeHandle.remote(*args, **kwargs)[source]#
Issue an asynchronous request to the deployment.
Returns a Ray ObjectRef whose results can be waited for or retrieved using ray.wait or ray.get (or
await object_ref
), respectively.- Returns
ray.ObjectRef
- Parameters
request_data (dict, Any) – If it’s a dictionary, the data will be available in
request.json()
orrequest.form()
. Otherwise, it will be available inrequest.body()
.**kwargs – All keyword arguments will be available in
request.query_params
.