various/stale

This commit is contained in:
2026-01-25 13:14:00 -05:00
parent 10ccf8c8eb
commit 97fd7dd67d
14 changed files with 501 additions and 64 deletions

View File

@@ -92,7 +92,11 @@ def get_redis_sync_client(decode_responses: bool = True) -> redis_sync.Redis:
async def close_redis_pools() -> None:
"""Close Redis connections. Call on app shutdown."""
global _redis_async_pool, _redis_async_client, _redis_sync_client, _redis_sync_client_decoded
global \
_redis_async_pool, \
_redis_async_client, \
_redis_sync_client, \
_redis_sync_client_decoded
if _redis_async_client:
await _redis_async_client.close()