SU2-2 | Скрипт интегрирован в sidekiq, создан простой интерфейс на взаимодействие с SK, тест на нескольких ИНН

This commit is contained in:
Dmitry
2025-11-28 17:22:47 +03:00
parent 6758e271fa
commit 7f6e386250
15 changed files with 208 additions and 3 deletions
+14
View File
@@ -0,0 +1,14 @@
class ReportsController < ApplicationController
def index
end
def create
inn = params[:inn]
output_path = Rails.root.join('tmp', 'reports', inn)
FileUtils.mkdir_p(output_path)
FileProcessorJob.perform_async(inn, output_path.to_s)
redirect_to reports_path, notice: 'Отчёт загружается в фоне'
end
end