-
- Downloads
Add rake task to clean orphan artifact files
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.
Showing
- changelogs/unreleased/tc-rake-orphan-artifacts.yml 5 additions, 0 deletionschangelogs/unreleased/tc-rake-orphan-artifacts.yml
- doc/administration/geo/replication/troubleshooting.md 9 additions, 0 deletionsdoc/administration/geo/replication/troubleshooting.md
- doc/raketasks/cleanup.md 45 additions, 0 deletionsdoc/raketasks/cleanup.md
- lib/gitlab/cleanup/orphan_job_artifact_files.rb 132 additions, 0 deletionslib/gitlab/cleanup/orphan_job_artifact_files.rb
- lib/gitlab/cleanup/orphan_job_artifact_files_batch.rb 80 additions, 0 deletionslib/gitlab/cleanup/orphan_job_artifact_files_batch.rb
- lib/tasks/gitlab/cleanup.rake 25 additions, 0 deletionslib/tasks/gitlab/cleanup.rake
- spec/lib/gitlab/cleanup/orphan_job_artifact_files_batch_spec.rb 66 additions, 0 deletions...ib/gitlab/cleanup/orphan_job_artifact_files_batch_spec.rb
- spec/lib/gitlab/cleanup/orphan_job_artifact_files_spec.rb 68 additions, 0 deletionsspec/lib/gitlab/cleanup/orphan_job_artifact_files_spec.rb
- spec/tasks/gitlab/cleanup_rake_spec.rb 29 additions, 0 deletionsspec/tasks/gitlab/cleanup_rake_spec.rb
Please register or sign in to comment