mirror of
https://github.com/pablorevilla-meshtastic/meshview.git
synced 2026-11-03 12:22:19 +01:00
Work on db cleanup tool
This commit is contained in:
1 parent
4f4c18fa14
commit
7c40c64de8
1 file changed
+1
-1
+1
-1
@@ -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