fix(redis): connect during health checks
This commit is contained in:
parent
0d828315bb
commit
ef75f08392
@ -491,6 +491,8 @@ class RedisManager:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
if not self.client:
|
if not self.client:
|
||||||
|
logger.info("Redis health check has no active client; connecting now")
|
||||||
|
if not self.connect():
|
||||||
raise Exception("No Redis connection")
|
raise Exception("No Redis connection")
|
||||||
|
|
||||||
# Test connection
|
# Test connection
|
||||||
|
|||||||
@ -16,7 +16,7 @@ logging = logger.get_logger(
|
|||||||
from fastapi import APIRouter, HTTPException
|
from fastapi import APIRouter, HTTPException
|
||||||
from langchain_classic.chains import GraphCypherQAChain
|
from langchain_classic.chains import GraphCypherQAChain
|
||||||
from langchain_community.graphs import Neo4jGraph
|
from langchain_community.graphs import Neo4jGraph
|
||||||
from langchain_community.chat_models import ChatOpenAI
|
from langchain_openai import ChatOpenAI
|
||||||
from langchain_classic.prompts.prompt import PromptTemplate
|
from langchain_classic.prompts.prompt import PromptTemplate
|
||||||
from routers.llm.private.ollama.ollama_wrapper import OllamaWrapper
|
from routers.llm.private.ollama.ollama_wrapper import OllamaWrapper
|
||||||
from modules.database.tools.neontology.utils import get_node_types, get_rels_by_type
|
from modules.database.tools.neontology.utils import get_node_types, get_rels_by_type
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user