class_docstr: A handle to a placement group.
docstr: Returns an ObjectRef to check ready status.
  
  This API runs a small dummy task to wait for placement group creation.
  It is compatible to ray.get and ray.wait.
  
  Example:
      .. testcode::
  
          import ray
  
          pg = ray.util.placement_group([{"CPU": 1}])
          ray.get(pg.ready())
  
          pg = ray.util.placement_group([{"CPU": 1}])
          ray.wait([pg.ready()])
docstr_tok: ["Returns","an","ObjectRef","to","check","ready","status",".","This","API","runs","a","small","dummy","task","to","wait","for","placement","group","creation",".","It","is","compatible","to","ray.get","and","ray.wait",".","Example",":","..","testcode",":",":","import","ray","pg","=","ray.util.placement_group","(","[","{","``","CPU","''",":","1","}","]",")","ray.get","(","pg.ready","(",")",")","pg","=","ray.util.placement_group","(","[","{","``","CPU","''",":","1","}","]",")","ray.wait","(","[","pg.ready","(",")","]",")"]
code: def ready(self) -> "ray._raylet.ObjectRef":
      """Returns an ObjectRef to check ready status.
  
      This API runs a small dummy task to wait for placement group creation.
      It is compatible to ray.get and ray.wait.
  
      Example:
          .. testcode::
  
              import ray
  
              pg = ray.util.placement_group([{"CPU": 1}])
              ray.get(pg.ready())
  
              pg = ray.util.placement_group([{"CPU": 1}])
              ray.wait([pg.ready()])
  
      """
      self._fill_bundle_cache_if_needed()
  
      _export_bundle_reservation_check_method_if_needed()
  
      assert len(self.bundle_cache) != 0, (
          "ready() cannot be called on placement group object with a "
          "bundle length == 0, current bundle length: "
          f"{len(self.bundle_cache)}"
      )
  
      return bundle_reservation_check.options(
          scheduling_strategy=PlacementGroupSchedulingStrategy(
              placement_group=self
          ),
          resources={BUNDLE_RESOURCE_LABEL: 0.001},
      ).remote(self)
  
imports: import warnings
  from typing import Dict, List, Optional, Union
  import ray
  from ray._private.auto_init_hook import auto_init_ray
  from ray._private.client_mode_hook import client_mode_should_convert, client_mode_wrap
  from ray._private.utils import hex_to_binary, get_ray_doc_version
  from ray._raylet import PlacementGroupID
  from ray.util.annotations import DeveloperAPI, PublicAPI
  from ray.util.scheduling_strategies import PlacementGroupSchedulingStrategy
label_desc: Use image node_id 4 for calling the PlacementGroup obj's underlying member method code with example usage: obj.ready() and returns: bundle_reservation_check