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

Version Path
activestorage-8.0.0 app/jobs/active_storage/purge_job.rb
activestorage-7.2.2 app/jobs/active_storage/purge_job.rb
activestorage-7.1.5 app/jobs/active_storage/purge_job.rb
activestorage-8.0.0.rc2 app/jobs/active_storage/purge_job.rb
activestorage-7.2.1.2 app/jobs/active_storage/purge_job.rb
activestorage-7.1.4.2 app/jobs/active_storage/purge_job.rb
activestorage-8.0.0.rc1 app/jobs/active_storage/purge_job.rb
activestorage-7.2.1.1 app/jobs/active_storage/purge_job.rb
activestorage-7.1.4.1 app/jobs/active_storage/purge_job.rb
activestorage-8.0.0.beta1 app/jobs/active_storage/purge_job.rb
omg-activestorage-8.0.0.alpha9 app/jobs/active_storage/purge_job.rb
omg-activestorage-8.0.0.alpha8 app/jobs/active_storage/purge_job.rb
omg-activestorage-8.0.0.alpha7 app/jobs/active_storage/purge_job.rb
omg-activestorage-8.0.0.alpha4 app/jobs/active_storage/purge_job.rb
omg-activestorage-8.0.0.alpha3 app/jobs/active_storage/purge_job.rb
activestorage-7.1.4 app/jobs/active_storage/purge_job.rb
activestorage-7.2.1 app/jobs/active_storage/purge_job.rb
activestorage-7.2.0 app/jobs/active_storage/purge_job.rb
activestorage-7.2.0.rc1 app/jobs/active_storage/purge_job.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/activestorage-7.1.3.4/app/jobs/active_storage/purge_job.rb