show how many ids got deleted and when none got deleted
Build and Push Docker Container / build-and-push (push) Successful in 1m28s

This commit is contained in:
2025-10-25 15:58:55 +02:00
parent fe4526bfe0
commit 42c7047a92
+3
View File
@@ -199,8 +199,11 @@ async def cleanup_task():
if removed_ids: if removed_ids:
try: try:
await current_app.edgedb.delete_files_by_ids(removed_ids) await current_app.edgedb.delete_files_by_ids(removed_ids)
current_app.logger.info("Deleted %d expired files from disk and database: %s", len(removed_ids), ", ".join(removed_ids))
except Exception: except Exception:
current_app.logger.exception("Failed to delete DB rows for expired files") current_app.logger.exception("Failed to delete DB rows for expired files")
else:
current_app.logger.info("No files where expired or deleted at %s", now.isoformat())
except Exception: except Exception:
current_app.logger.exception("Cleanup task iteration failed") current_app.logger.exception("Cleanup task iteration failed")