Skip to content

Commit

Permalink
fix: Attempt to fix graph service check
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Christie committed Dec 14, 2023
1 parent 182261e commit da8cf19
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions viewer/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
# Default timeout for any request calls
REQUEST_TIMEOUT_S = 5

_NEO4J_LOCATION: str = os.environ.get("NEO4J_QUERY", "neo4j")
_NEO4J_AUTH: str = os.environ.get("NEO4J_AUTH", "neo4j/neo4j")


class State(str, Enum):
NOT_CONFIGURED = "NOT_CONFIGURED"
Expand Down Expand Up @@ -186,8 +189,7 @@ def fragmentation_graph(func_id, name, url=None) -> bool:
del func_id, name, url

logger.debug("+ fragmentation_graph")
# graph_driver = get_driver(url='neo4j', neo4j_auth='neo4j/password')
graph_driver = get_driver()
graph_driver = get_driver(url=_NEO4J_LOCATION, neo4j_auth=_NEO4J_AUTH)
with graph_driver.session() as session:
try:
_ = session.run("match (n) return count (n);")
Expand Down

0 comments on commit da8cf19

Please sign in to comment.