blob: f13ac9e5db2896b9f10b7c2bd2c3c7b1ad1ad801 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
class ProjectExportWorker
include Sidekiq::Worker
include DedicatedSidekiqQueue
include ExceptionBacktrace
sidekiq_options retry: 3
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
|