code: def wait_one(self):
          
          while True:
              try:
                  item = self.output_queue.get(True, self.polltime)
              except Queue.Empty:
                  continue
              except KeyboardInterrupt:
                  LOGGER.debug('Exiting')
                  return
              else:
                  item.check_result()
                  return
docs: Waits until this worker has finished one work item or died.