def update_all_cluster(self):
    logger.info("start updating clusters quota")
    self.start_time = time.time()
    hdfs_service = Service.objects.get(name='hdfs')
    for cluster in Cluster.objects.filter(active=True, service=hdfs_service).all():
      self.update_cluster(cluster)
    logger.info("spent %f seconds for updating clusters quota",
        time.time() - self.start_time)
dataset/ETHPy150Open XiaoMi/minos/owl/utils/quota_util.py/QuotaUpdater.update_all_cluster/original