2016-05-04 04:59:33 -04:00
|
|
|
class ProjectExportWorker
|
2017-11-28 11:08:30 -05:00
|
|
|
include ApplicationWorker
|
2017-08-24 15:24:58 -04:00
|
|
|
include ExceptionBacktrace
|
2016-05-04 04:59:33 -04:00
|
|
|
|
2016-10-21 12:13:41 -04:00
|
|
|
sidekiq_options retry: 3
|
2016-05-04 04:59:33 -04:00
|
|
|
|
|
|
|
def perform(current_user_id, project_id)
|
|
|
|
current_user = User.find(current_user_id)
|
|
|
|
project = Project.find(project_id)
|
2016-06-14 10:31:03 -04:00
|
|
|
|
2016-05-04 04:59:33 -04:00
|
|
|
::Projects::ImportExport::ExportService.new(project, current_user).execute
|
|
|
|
end
|
|
|
|
end
|