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}")