From 7c40c64de8bf642ea32e5703c353e4d3fdd19720 Mon Sep 17 00:00:00 2001 From: Pablo Revilla Date: Thu, 18 Sep 2025 09:45:01 -0700 Subject: [PATCH] Work on db cleanup tool --- startdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/startdb.py b/startdb.py index b95410e..eedbc39 100644 --- a/startdb.py +++ b/startdb.py @@ -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}")