def exists(cls,worker_id): if worker_id in client.smembers(cls.resq_workers): return True return False
def all(cls): return [cls.find(w) for w in client.smembers(cls.resq_workers) or []]