18 lines
405 B
Python
18 lines
405 B
Python
|
|
#!/usr/bin/env python3
|
||
|
|
import asyncio
|
||
|
|
import sys
|
||
|
|
sys.path.insert(0, "/app")
|
||
|
|
from app.config import settings
|
||
|
|
from app.dependencies import get_redis
|
||
|
|
|
||
|
|
async def test():
|
||
|
|
print("Testing Redis using the new config...")
|
||
|
|
try:
|
||
|
|
r = await get_redis()
|
||
|
|
result = await r.ping()
|
||
|
|
print(f"Ping result: {result}")
|
||
|
|
except Exception as e:
|
||
|
|
print(f"Error: {e}")
|
||
|
|
|
||
|
|
asyncio.run(test())
|