- Implemented a new script to upsert data from SQLite dumps into PostgreSQL asynchronously.
- Added detailed reporting for each table processed, including success and error statuses. - Integrated Discord notifications for various stages of the upsert process. - Included functionality to fetch the latest SQLite dump from a specified URL. - Added error handling and state management for the upsert process. Resolves #34
This commit is contained in:
@@ -92,11 +92,7 @@ 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()
|
||||
|
||||
Reference in New Issue
Block a user