dabd91b2c8
This adds the rake task rake gitlab:cleanup:orphan_job_artifact_files. This rake task cleans all orphan job artifact files it can find on disk. It performs a search on the complete folder of all artifacts on disk. Then it filters out all the job artifact ID for which it could not find a record with matching ID in the database. For these, the file is deleted from disk. |
||
---|---|---|
.. | ||
orphan_job_artifact_files_batch_spec.rb | ||
orphan_job_artifact_files_spec.rb | ||
project_uploads_spec.rb | ||
remote_uploads_spec.rb |