summarize_objects#

ray.util.state.summarize_objects(address: str | None = None, timeout: int = 30, raise_on_missing_output: bool = True, _explain: bool = False) Dict[source]#

Summarize the objects in cluster.

Parameters:
  • address (str | None) – Ray bootstrap address, could be auto, localhost:6379. If None, it will be resolved automatically from an initialized ray.

  • timeout (int) – Max timeout for requests made when getting the states.

  • raise_on_missing_output (bool) – When True, exceptions will be raised if there is missing data due to truncation/data source unavailable.

  • _explain (bool) – Print the API information such as API latency or failed query information.

Returns:

Dictionarified ObjectSummaries

Raises:

RayStateApiException – if the CLI failed to query the data.

Return type:

Dict

DeveloperAPI: This API may change across minor Ray releases.