ray.experimental.state.api.get_objects
ray.experimental.state.api.get_objects#
- ray.experimental.state.api.get_objects(id: str, address: Optional[str] = None, timeout: int = 30, _explain: bool = False) List[Dict] [source]#
Get objects by id.
There could be more than 1 entry returned since an object could be referenced at different places.
- Parameters
id – Id of the object
address – Ray bootstrap address, could be
auto
,localhost:6379
. If None, it will be resolved automatically from an initialized ray.timeout – Max timeout value for the state APIs requests made.
_explain – Print the API information such as API latency or failed query information.
- Returns
List of dictionarified
ObjectState
.- Raises
Exceptions –
RayStateApiException
if the CLI failed to query the data.