'Kill unused/idle workers'

def murder_workers(self):

    if (not self.timeout):
        return
    workers = list(self.WORKERS.items())
    for (pid, worker) in workers:
        try:
            if ((time.time() - worker.tmp.last_update()) <= self.timeout):
                continue
        except (OSError, ValueError):
            continue
        if (not worker.aborted):
            self.log.critical('WORKER    TIMEOUT    (pid:%s)', pid)
            worker.aborted = True
            self.kill_worker(pid, signal.SIGABRT)
        else:
            self.kill_worker(pid, signal.SIGKILL)
