Sha256: 2b983ecca300aa4957c2a8476f3a9227b5c4e3d846971c368bf9980044e58e36
Contents?: true
Size: 649 Bytes
Versions: 3
Compression:
Stored size: 649 Bytes
Contents
# frozen_string_literal: true module Bulkrax class DeleteJob < ApplicationJob queue_as :import def perform(entry, importer_run) obj = entry.factory.find obj&.delete # rubocop:disable Rails/SkipsModelValidations ImporterRun.increment_counter(:deleted_records, importer_run.id) ImporterRun.decrement_counter(:enqueued_records, importer_run.id) # rubocop:enable Rails/SkipsModelValidations entry.save! entry.importer.current_run = ImporterRun.find(importer_run.id) entry.importer.record_status entry.set_status_info("Deleted", ImporterRun.find(importer_run.id)) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bulkrax-6.0.1 | app/jobs/bulkrax/delete_job.rb |
bulkrax-6.0.0 | app/jobs/bulkrax/delete_job.rb |
bulkrax-5.5.0 | app/jobs/bulkrax/delete_job.rb |