def is_muted(type_, proj_name, target_id, user_id): key = mute_rds_key(type_, proj_name, target_id) return rds.sismember(key, user_id)
def in_queue(self): # Already waits for building if rds.sismember(PROJECT_BUILD_QUEUE_RDS_KEY, self.queue_member): return True