'rewrite run function, auto running and must call self.work()'

def run(self):

    logging.warning('%s[%s]    start...', self.__class__.__name__, self.getName())
    while True:
        try:
            if (not self.working()):
                break
        except queue.Empty:
            if self._pool.is_all_tasks_done():
                break
        except TypeError:
            if self._pool.is_all_tasks_done():
                break
        except Exception as excep:
            logging.error('%s[%s]    error:    %s', self.__class__.__name__, self.getName(), excep)
            break
    logging.warning('%s[%s]    end...', self.__class__.__name__, self.getName())
    return
