Sha256: 3f6bf6f0f664fb768d42646d04866c6ee0ac566b938911037ecbd2394f1b4269

Contents?: true

Size: 311 Bytes

Versions: 8

Compression:

Stored size: 311 Bytes

Contents

# frozen_string_literal: true

# Provides asynchronous purging of ActiveStorage::Blob records via ActiveStorage::Blob#purge_later.
class ActiveStorage::PurgeJob < ActiveStorage::BaseJob
  # FIXME: Limit this to a custom ActiveStorage error
  retry_on StandardError

  def perform(blob)
    blob.purge
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
activestorage-5.2.1.1 app/jobs/active_storage/purge_job.rb
activestorage-5.2.1 app/jobs/active_storage/purge_job.rb
activestorage-5.2.1.rc1 app/jobs/active_storage/purge_job.rb
activestorage-5.2.0 app/jobs/active_storage/purge_job.rb
activestorage-5.2.0.rc2 app/jobs/active_storage/purge_job.rb
activestorage-5.2.0.rc1 app/jobs/active_storage/purge_job.rb
activestorage-5.2.0.beta2 app/jobs/active_storage/purge_job.rb
activestorage-5.2.0.beta1 app/jobs/active_storage/purge_job.rb