app/jobs/import_job.rb in iqvoc-4.8.2 vs app/jobs/import_job.rb in iqvoc-4.9.0
- old
+ new
@@ -1,5 +1,13 @@
class ImportJob < Struct.new(:import, :filename, :user, :namespace, :publish)
+
+ def enqueue(job)
+ job.delayed_reference_id = import.id
+ job.delayed_reference_type = import.class.to_s
+ job.delayed_global_reference_id = import.to_global_id
+ job.save!
+ end
+
def perform
strio = StringIO.new
importer = SkosImporter.new(filename, namespace, Logger.new(strio), publish)
importer.run