2016-05-04 08:59:33 +00:00
|
|
|
class ProjectExportWorker
|
|
|
|
include Sidekiq::Worker
|
|
|
|
|
2016-07-15 09:34:23 +00:00
|
|
|
sidekiq_options queue: :gitlab_shell, retry: 3
|
2016-05-04 08:59:33 +00:00
|
|
|
|
|
|
|
def perform(current_user_id, project_id)
|
|
|
|
current_user = User.find(current_user_id)
|
|
|
|
project = Project.find(project_id)
|
2016-06-14 14:31:03 +00:00
|
|
|
|
2016-05-04 08:59:33 +00:00
|
|
|
::Projects::ImportExport::ExportService.new(project, current_user).execute
|
|
|
|
end
|
|
|
|
end
|