|
|
@ -42,9 +42,8 @@ module Imports |
|
|
|
Rack::MiniProfiler.step("Start Processing file #{filename}") do |
|
|
|
Rack::MiniProfiler.step("Start Processing file #{filename}") do |
|
|
|
# Generate background job to process file completely |
|
|
|
# Generate background job to process file completely |
|
|
|
xml_document = Nokogiri::XML(File.open(filename)) |
|
|
|
xml_document = Nokogiri::XML(File.open(filename)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LettingsLogImportJob.perform_now(@run_id, xml_document.to_s) |
|
|
|
LettingsLogImportJob.perform_later(@run_id, xml_document.to_s) |
|
|
|
#send(:create_log, xml_document) |
|
|
|
#send(:create_log, xml_document) |
|
|
|
end |
|
|
|
end |
|
|
|
rescue StandardError => e |
|
|
|
rescue StandardError => e |
|
|
|