blob: 39f6037e0777ea2cd4c6eb49d2c015a53c97c61f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
class ProjectExportWorker
include Sidekiq::Worker
sidekiq_options queue: :gitlab_shell, retry: true
def perform(current_user_id, project_id)
current_user = User.find(current_user_id)
project = Project.find(project_id)
::Projects::ImportExport::ExportService.new(project, current_user).execute
end
end
|