Sha256: 2f669a608896d24e196a4cf05944b1930934e774f535a8e184e2aa1acf7194e3
Contents?: true
Size: 666 Bytes
Versions: 2
Compression:
Stored size: 666 Bytes
Contents
# frozen_string_literal: true module Bulkrax class DeleteJob < ApplicationJob queue_as Bulkrax.config.ingest_queue_name # rubocop:disable Rails/SkipsModelValidations def perform(entry, importer_run) obj = entry.factory.find obj&.delete ImporterRun.find(importer_run.id).increment!(:deleted_records) ImporterRun.find(importer_run.id).decrement!(:enqueued_records) 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 # rubocop:enable Rails/SkipsModelValidations end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bulkrax-5.4.2 | app/jobs/bulkrax/delete_job.rb |
bulkrax-5.3.1 | app/jobs/bulkrax/delete_job.rb |