Sha256: 419975a74bd00515b5a89d0de6288610da969d19f4cf352b2ca660a9699a62ec
Contents?: true
Size: 397 Bytes
Versions: 21
Compression:
Stored size: 397 Bytes
Contents
module Ddr::Batch class BatchDeletionJob @queue = :batch def self.perform(batch_id) batch = Batch.find(batch_id) batch.status = Batch::STATUS_DELETING batch.save! batch.destroy! end def self.before_enqueue_set_status(batch_id) batch = Batch.find(batch_id) batch.status = Batch::STATUS_QUEUED_FOR_DELETION batch.save end end end
Version data entries
21 entries across 21 versions & 1 rubygems