You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
454 B
17 lines
454 B
2 years ago
|
|
||
|
class LettingsLogImportJob < ApplicationJob
|
||
|
include Wisper::Publisher
|
||
|
|
||
|
self.queue_name_prefix = '_lettings_logs'
|
||
|
queue_as :default
|
||
|
|
||
|
def perform(run_id, xml_document)
|
||
|
puts "PERFORMING RUN: #{run_id} WITH XML DOC: #{xml_document}"
|
||
|
#Wisper.subscribe(LettingsLogImportListener.new, prefix: :on)
|
||
|
|
||
|
processor = Imports::LettingsLogsImportProcessor.new(xml_document)
|
||
|
|
||
|
broadcast(::Import::ITEM_PROCESSED, run_id, processor)
|
||
|
end
|
||
|
end
|