Sha256: 3e799b4186fcb451ce7a1c59c9741d45ed04f9b656b15083b8032e4bb563dd5b

Contents?: true

Size: 356 Bytes

Versions: 10

Compression:

Stored size: 356 Bytes

Contents

module CsvImportMagic
  class ImporterWorker
    include ::Sidekiq::Worker

    sidekiq_options retry: 1

    def perform(options)
      options.symbolize_keys!
      csv_parsed = ::CsvImportMagic::Importer.new(options[:importer_id], options[:resources]).call
      CsvImportMagic::Failure.new(csv_parsed, options[:importer_id]).generate
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
csv_import_magic-0.0.11 app/workers/csv_import_magic/importer_worker.rb
csv_import_magic-0.0.10 app/workers/csv_import_magic/importer_worker.rb
csv_import_magic-0.0.8 app/workers/csv_import_magic/importer_worker.rb
csv_import_magic-0.0.7 app/workers/csv_import_magic/importer_worker.rb
csv_import_magic-0.0.6 app/workers/csv_import_magic/importer_worker.rb
csv_import_magic-0.0.5 app/workers/csv_import_magic/importer_worker.rb
csv_import_magic-0.0.4 app/workers/csv_import_magic/importer_worker.rb
csv_import_magic-0.0.3 app/workers/csv_import_magic/importer_worker.rb
csv_import_magic-0.0.2 app/workers/csv_import_magic/importer_worker.rb
csv_import_magic-0.0.1 app/workers/csv_import_magic/importer_worker.rb