Files
wecom_it_smart_desk/deploy-server/test_redis2.py
T

20 lines
395 B
Python
Raw Normal View History

#!/usr/bin/env python3
import sys
sys.path.insert(0, "/app")
# Test config directly
from app.config import settings
print(f"REDIS_URL = {settings.redis_url}")
print("Creating Redis client...")
client = settings.create_redis_client()
print(f"Client created: {client}")
import asyncio
async def test():
result = await client.ping()
print(f"Ping result: {result}")
asyncio.run(test())