mirror of
https://github.com/pablorevilla-meshtastic/meshview.git
synced 2026-03-04 23:27:46 +01:00
Work on db cleanup tool
This commit is contained in:
@@ -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}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user