ray.serve.request_router.PendingRequest#
- class ray.serve.request_router.PendingRequest(args: List[Any], kwargs: Dict[Any, Any], metadata: RequestMetadata, created_at: float = ..., future: Future = ..., routing_context: RequestRoutingContext = ...)[source]#
A request that is pending execution by a replica.
PublicAPI (alpha): This API is in alpha and may change before becoming stable.
Methods
Reset the
asyncio.Future
, must be called if this request is re-used.Attributes
Positional arguments for the request.
Keyword arguments for the request.
Metadata for the request, including request ID and whether it's streaming.
Timestamp when the request was created.
An asyncio Future that will be set when the request is routed.
Context for request routing, used to track routing attempts and backoff.