

def _add_minion(self):
    if hasattr(self, 'logger'):
        self.logger.info('Adding minion')
    if self.log_file:
        if special_log_file(self.log_file):
            log_path = self.log_file
        else:
            log_path = os.path.dirname(self.log_file)
    else:
        log_path = None
    m = Minion(self.queues, self.server, self.password, interval=self.minions_interval, log_level=self.logging_level, log_path=log_path, concat_logs=self.concat_minions_logs, max_jobs=self.max_jobs)
    m.start()
    self._workers[m.pid] = m
    if hasattr(self, 'logger'):
        m.logger.info(('minion added at: %s' % m.pid))
    return m

dataset/ETHPy150Open binarydud/pyres/pyres/horde.py Khan._add_minion/VarMisuse@154/201 `self`->`m`