code: def poll(self):
          
  
          clusterids = clusterprocids2clusterids(self.clusterprocids_outstanding)
          clusterprocid_status_list = query_status_for(clusterids)
          # e.g., [['1730126.0', 2], ['1730127.0', 2], ['1730129.1', 1], ['1730130.0', 1]]
  
          if clusterprocid_status_list:
              clusterprocids, statuses = zip(*clusterprocid_status_list)
          else:
              clusterprocids, statuses = (), ()
  
          clusterprocids_finished = [i for i in self.clusterprocids_outstanding if i not in clusterprocids]
          self.clusterprocids_finished.extend(clusterprocids_finished)
          self.clusterprocids_outstanding[:] = clusterprocids
  
          # logging
          counter = collections.Counter(statuses)
          messages = [ ]
          if counter:
              messages.append(', '.join(['{}: {}'.format(HTCONDOR_JOBSTATUS[k], counter[k]) for k in counter.keys()]))
          if self.clusterprocids_finished:
              messages.append('Finished {}'.format(len(self.clusterprocids_finished)))
          logger = logging.getLogger(__name__)
          logger.info(', '.join(messages))
  
          return clusterprocids_finished
docs: Return the run IDs of the finished jobs
  
          Returns
          -------
          list(str)
              The list of the run IDs of the finished jobs