def redis_is_running():
 try:
  queue = get_queue()
  Worker.all(queue.connection)
 except ConnectionError:
  return False
 return True

def redis_is_running ( ) : try : queue = get_queue ( ) Worker . all ( queue . connection ) except ConnectionError : return False return True
checks is redis is running :returns: true if redis is running .