show how many ids got deleted and when none got deleted
Build and Push Docker Container / build-and-push (push) Successful in 1m28s
Build and Push Docker Container / build-and-push (push) Successful in 1m28s
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user