ray.util.state.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 – Ray bootstrap address, could be auto, localhost:6379. If None, it will be resolved automatically from an initialized ray.

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

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

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

Returns:

Dictionarified ObjectSummaries

Raises:

ExceptionsRayStateApiException if the CLI failed to query the data.

DeveloperAPI: This API may change across minor Ray releases.