summaryrefslogtreecommitdiff
path: root/app/workers
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-06-14 22:11:21 +0200
committerJames Lopez <james@jameslopez.es>2016-06-14 22:11:21 +0200
commit36ccaca35a7be19498d779a5b781cc4e3f0dede8 (patch)
treee503c991277f048f22fc5899434484e7ff07818a /app/workers
parentdee6fba5c9df60be370b881f074fac13d16b83ed (diff)
downloadgitlab-ce-36ccaca35a7be19498d779a5b781cc4e3f0dede8.tar.gz
project export archiver
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/gitlab_project_archive_worker.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/workers/gitlab_project_archive_worker.rb b/app/workers/gitlab_project_archive_worker.rb
new file mode 100644
index 00000000000..63e7086d41a
--- /dev/null
+++ b/app/workers/gitlab_project_archive_worker.rb
@@ -0,0 +1,9 @@
+class GitlabProjectArchiveWorker
+ include Sidekiq::Worker
+
+ sidekiq_options queue: :default
+
+ def perform
+ Project.archive_gitlab_exports!
+ end
+end