BigW Consortium Gitlab

project_export_worker.rb 321 Bytes
Newer Older
1 2 3
class ProjectExportWorker
  include Sidekiq::Worker

4
  sidekiq_options queue: :gitlab_shell, retry: 3
5 6 7 8

  def perform(current_user_id, project_id)
    current_user = User.find(current_user_id)
    project = Project.find(project_id)
9

10 11 12
    ::Projects::ImportExport::ExportService.new(project, current_user).execute
  end
end