Sha256: dca5747440993cd6c879a0894d664e82a43a8d2a2f963d4816d078d11bd48234

Contents?: true

Size: 371 Bytes

Versions: 8

Compression:

Stored size: 371 Bytes

Contents

# frozen_string_literal: true

# Provides asynchronous analysis of ActiveStorage::Blob records via ActiveStorage::Blob#analyze_later.
class ActiveStorage::AnalyzeJob < ActiveStorage::BaseJob
  queue_as { ActiveStorage.queues[:analysis] }

  retry_on ActiveStorage::IntegrityError, attempts: 10, wait: :exponentially_longer

  def perform(blob)
    blob.analyze
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/activestorage-6.0.0/app/jobs/active_storage/analyze_job.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/activestorage-6.0.0/app/jobs/active_storage/analyze_job.rb
activestorage-6.0.0 app/jobs/active_storage/analyze_job.rb
activestorage-6.0.0.rc2 app/jobs/active_storage/analyze_job.rb
activestorage-6.0.0.rc1 app/jobs/active_storage/analyze_job.rb
activestorage-6.0.0.beta3 app/jobs/active_storage/analyze_job.rb
activestorage-6.0.0.beta2 app/jobs/active_storage/analyze_job.rb
activestorage-6.0.0.beta1 app/jobs/active_storage/analyze_job.rb