Work on DB cleanup tool

This commit is contained in:
Pablo Revilla
2025-09-19 09:11:00 -07:00
parent 4ffd287c84
commit 0da2ef841c

View File

@@ -55,7 +55,7 @@ async def daily_cleanup_at(
cleanup_logger.info(f"Next cleanup scheduled at {next_run}")
await asyncio.sleep(delay)
cutoff = datetime.datetime.now() - datetime.timedelta(days=days_to_keep)
cutoff = (datetime.datetime.now() - datetime.timedelta(days=days_to_keep)).strftime("%Y-%m-%d %H:%M:%S")
cleanup_logger.info(f"Running cleanup for records older than {cutoff}...")
try: