

def _remove_minion(self, pid=None):
    (pid, m) = self._workers.popitem(False)
    m.terminate()
    self.resq.redis.srem('resque:khans', str(self))
    self.pool_size -= 1
    self.resq.redis.sadd('resque:khans', str(self))
    return m

dataset/ETHPy150Open binarydud/pyres/pyres/horde.py Khan._remove_minion/original