Work on db cleanup tool

This commit is contained in:
Pablo Revilla
2025-09-18 09:45:01 -07:00
parent 4f4c18fa14
commit 7c40c64de8

View File

@@ -78,7 +78,7 @@ async def daily_cleanup_at(db_file: str, hour: int = 2, minute: int = 0, days_to
total_deleted += deleted
if deleted == 0:
break
await asyncio.yield_now()
await asyncio.sleep(0)
cleanup_logger.info(f"Deleted a total of {total_deleted} rows from {table}")