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. |
||
|---|---|---|
| .. | ||
| artifacts | ||
| lfs | ||
| uploads | ||
| backup_rake_spec.rb | ||
| check_rake_spec.rb | ||
| cleanup_rake_spec.rb | ||
| db_rake_spec.rb | ||
| git_rake_spec.rb | ||
| gitaly_rake_spec.rb | ||
| info_rake_spec.rb | ||
| ldap_rake_spec.rb | ||
| mail_google_schema_whitelisting.rb | ||
| shell_rake_spec.rb | ||
| storage_rake_spec.rb | ||
| task_helpers_spec.rb | ||
| traces_rake_spec.rb | ||
| web_hook_rake_spec.rb | ||
| workhorse_rake_spec.rb | ||