Sha256: 1bd88dc58736a33c9b326993cbcaf8d62c2f8040a42c4f82d8e9c79925bfa8d4

Contents?: true

Size: 397 Bytes

Versions: 39

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

39 entries across 39 versions & 5 rubygems

Version Path
activestorage-8.0.2 app/jobs/active_storage/purge_job.rb
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/activestorage-7.1.3.4/app/jobs/active_storage/purge_job.rb
activestorage-8.0.1 app/jobs/active_storage/purge_job.rb
activestorage-8.0.0.1 app/jobs/active_storage/purge_job.rb
activestorage-7.2.2.1 app/jobs/active_storage/purge_job.rb
activestorage-7.1.5.1 app/jobs/active_storage/purge_job.rb
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