BigW Consortium Gitlab

project_export_worker.rb 331 Bytes
Newer Older
1 2
class ProjectExportWorker
  include Sidekiq::Worker
3
  include DedicatedSidekiqQueue
4

5
  sidekiq_options retry: 3
6 7 8 9

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

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