@classmethod
  def _pre_delete_hook(cls, key):
    for instance in InstanceInfo.query(ancestor=key):
      instance.key.delete()
Hook to delete InstaceInfo in Datastore that belongs to this cluster.
dataset/ETHPy150Open GoogleCloudPlatform/Data-Pipeline/app/src/hadoop/datastore.py/ClusterInfo._pre_delete_hook