

def run(self):
    setproctitle(('pyres_minion:%s: Starting' % (os.getppid(),)))
    if self.log_path:
        if special_log_file(self.log_path):
            self.log_file = self.log_path
        elif self.concat_logs:
            self.log_file = os.path.join(self.log_path, 'minion.log')
        else:
            self.log_file = os.path.join(self.log_path, ('minion-%s.log' % self.pid))
    namespace = ('minion:%s' % namespace.pid)
    self.logger = setup_logging('minion', namespace, self.log_level, self.log_file)
    if isinstance(self.server, string_types):
        self.resq = ResQ(server=self.server, password=self.password)
    elif isinstance(self.server, ResQ):
        self.resq = self.server
    else:
        raise Exception('Bad server argument')
    self.work(self.interval)

dataset/ETHPy150Open binarydud/pyres/pyres/horde.py Minion.run/VarMisuse@111/158 `self`->`namespace`