Skip to content

Cleanup orphaned corpus exports

Some corpus export files may remain after a corpus export has been deleted from database (I saw that on the balsac instance with large exports).

Add a new method on the cleanup management script that lists all exports on the bucket and try to match a relevant CorpusExport on the ID. If nothing is found in db, trash immediately the file (same as for ponos logs).