Sha256: 1bd88dc58736a33c9b326993cbcaf8d62c2f8040a42c4f82d8e9c79925bfa8d4
Contents?: true
Size: 397 Bytes
Versions: 33
Compression:
Stored size: 397 Bytes
Contents
# frozen_string_literal: true # Provides asynchronous purging of ActiveStorage::Blob records via ActiveStorage::Blob#purge_later. class ActiveStorage::PurgeJob < ActiveStorage::BaseJob queue_as { ActiveStorage.queues[:purge] } discard_on ActiveRecord::RecordNotFound retry_on ActiveRecord::Deadlocked, attempts: 10, wait: :polynomially_longer def perform(blob) blob.purge end end
Version data entries
33 entries across 33 versions & 4 rubygems