Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _get_client_rad(self, access_route):
return get_client_rad(access_route, logger)
def on_get(self, req, resp):
is_available_gopub()
if not self._connect_redis():
resp = self._create_error_resp(resp)
return
resp = self._create_success_resp(resp)
return
class RedisStatusResource(HealthCheckResource):
def on_get(self, req, resp):
logger.debug("CHUNK_NUM_SUM:{}".format(CHUNK_NUM_SUM))
logger.debug("REDIS_DELAY_LIMIT:{}".format(REDIS_DELAY_LIMIT))
r_result = self._connect_redis()
if not r_result:
resp = self._create_error_resp(resp)
return
r_keys = self.r.keys("*")
lists = {}
total = 0
for key in r_keys:
key = key.decode('utf-8')
key_type = self.r.type(key).decode('utf-8')
logger.debug("key:{} key_type:{}".format(key, key_type))