19 lines
496 B
Python
19 lines
496 B
Python
|
|
import asyncio
|
||
|
|
import sys
|
||
|
|
sys.path.insert(0, '/app')
|
||
|
|
|
||
|
|
async def test():
|
||
|
|
from app.services.neo4j_client import get_neo4j_client
|
||
|
|
client = await get_neo4j_client()
|
||
|
|
print(f'Neo4j client: {client}')
|
||
|
|
if client:
|
||
|
|
try:
|
||
|
|
healthy = await client.health_check()
|
||
|
|
print(f'Health check: {healthy}')
|
||
|
|
except Exception as e:
|
||
|
|
print(f'Health check error: {e}')
|
||
|
|
else:
|
||
|
|
print('Neo4j client is None - connection failed')
|
||
|
|
|
||
|
|
asyncio.run(test())
|