Skip to content

[Feature] Delete orphan files

Placeholder Adrien Pavão requested to merge orphan-files-deletion into develop

Original PR

  • #1523

Description

This adds a button in the storage view to trigger, after confirmation, the deletion of orphan files in the storage. The list of orphan files are not computed during the process since it is time expensive. Instead is uses the last storage analytics results and its storage_inconsistency log file.

To learn more about the storage analytics task: https://github.com/codalab/codabench/wiki/Administrator-procedures#storage-analytics

Issues this PR resolves

Related to issue #713

To do once merged (manual intervention)

Copy and paste last storage_inconsistency files from /logs folder to /var/logs/ folder. Mind the 's' at the end of 'logs'.

cd codabench
cp -r logs/* var/logs

Checklist

  • Code review by me
  • Hand tested by me
  • I'm proud of my work
  • Code review by reviewer
  • Hand tested by reviewer
  • CircleCi tests are passing
  • Ready to merge

Merge request reports

Loading