add cpe_importer_worker
This commit is contained in:
parent
dfbca14799
commit
941766c9a4
1 changed files with 10 additions and 0 deletions
10
app/workers/cpe_importer_worker.rb
Normal file
10
app/workers/cpe_importer_worker.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
require '/data_importer/lib/importers/cpe_importer.rb'
|
||||
|
||||
class CpeImporterWorker
|
||||
include Faktory::Job
|
||||
|
||||
def perform(*args)
|
||||
puts "Hello, I am #{jid} with args #{args}"
|
||||
CpeImporter.new.import
|
||||
end
|
||||
end
|
Loading…
Add table
Reference in a new issue