Browse Source

Use perform_later for non-local dev testing

CLDC-122-experimental-background-job-lettings-log-import-with-report
Mo Seedat 2 years ago
parent
commit
4875cdc63b
  1. 3
      app/services/imports/lettings_logs_import_service.rb
  2. BIN
      dump.rdb

3
app/services/imports/lettings_logs_import_service.rb

@ -43,8 +43,7 @@ module Imports
# Generate background job to process file completely
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)
end
rescue StandardError => e

BIN
dump.rdb

Binary file not shown.
Loading…
Cancel
Save