def _GetCallClientList(self, client_ids):
    call_list = []
    with self.client_list_lock:
      self.client_list.extend(client_ids)

      if len(self.client_list) >= config_lib.CONFIG[
          "StatsHunt.ClientBatchSize"]:
        # We have enough clients ready to process, take a copy of the list so we
        # can release the lock.
        call_list, self.client_list = self.client_list, []
    return call_list
Use self.client_list to determine clients that need calling.
dataset/ETHPy150Open google/grr/grr/lib/hunts/standard.py/StatsHunt._GetCallClientList