def rq_workers_are_running():
 if redis_is_running():
  queue = get_queue()
  if len(queue.connection.smembers(Worker.redis_workers_keys)):
   return True
 return False

def rq_workers_are_running ( ) : if redis_is_running ( ) : queue = get_queue ( ) if len ( queue . connection . smembers ( Worker . redis_workers_keys ) ) : return True return False
checks if there are any rq workers running :returns: true if there are rq workers running .