Skip to content
Snippets Groups Projects
Commit 697a27d7 authored by spmohanty's avatar spmohanty
Browse files

Remove redundant redis-ping call

parent 89c05cfd
No related branches found
Tags v0.3.5
No related merge requests found
......@@ -205,17 +205,6 @@ class FlatlandRemoteEvaluationService:
redis connection pool
"""
redis_conn = redis.Redis(connection_pool=self.redis_pool)
try:
redis_conn.ping()
except Exception:
raise Exception(
"Unable to connect to redis server at {}:{} ."
"Are you sure there is a redis-server running at the "
"specified location ?".format(
self.remote_host,
self.remote_port
)
)
return redis_conn
def _error_template(self, payload):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment