2016-06-22 15:30:34 +05:30
|
|
|
class ProjectExportWorker
|
2018-03-17 18:26:18 +05:30
|
|
|
include ApplicationWorker
|
|
|
|
include ExceptionBacktrace
|
2016-06-22 15:30:34 +05:30
|
|
|
|
2016-11-03 12:29:30 +05:30
|
|
|
sidekiq_options retry: 3
|
2016-06-22 15:30:34 +05:30
|
|
|
|
|
|
|
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
|