diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-07-18 16:38:36 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-07-21 10:31:49 -0300 |
commit | a6de806498c405355380be4b80f63d134658b779 (patch) | |
tree | 16729b67fb209feb247fa7812a0fc6f48147a082 /app/workers | |
parent | 6ae177ef53e57d98f95238df990da2225bca3fab (diff) | |
download | gitlab-ce-a6de806498c405355380be4b80f63d134658b779.tar.gz |
Add service to clean up repository archive cache
Replace invocation of `find` with Ruby code that matches old cached
files in a better, and safe way to avoid data-integrity issues.
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/repository_archive_cache_worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/repository_archive_cache_worker.rb b/app/workers/repository_archive_cache_worker.rb index 47c5a670ed4..a2e49c61f59 100644 --- a/app/workers/repository_archive_cache_worker.rb +++ b/app/workers/repository_archive_cache_worker.rb @@ -4,6 +4,6 @@ class RepositoryArchiveCacheWorker sidekiq_options queue: :default def perform - Repository.clean_old_archives + RepositoryArchiveCleanUpService.new.execute end end |