def wait_one(self):
        """Waits until this worker has finished one work item or died."""
        while True:
            try:
                item = self.output_queue.get(True, self.polltime)
            except Queue.Empty:
                continue
            except __HOLE__:
                LOGGER.debug('Exiting')
                return
            else:
                item.check_result()
                return
dataset/ETHPy150Open bslatkin/dpxdt/dpxdt/client/workers.py/WorkflowThread.wait_one