Sha256: 5f1480041bd5f545518f586ccf2aa1c5537279e910dbbffc9abb7021435bf174

Contents?: true

Size: 413 Bytes

Versions: 108

Compression:

Stored size: 413 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] }

  discard_on ActiveRecord::RecordNotFound
  retry_on ActiveStorage::IntegrityError, attempts: 10, wait: :exponentially_longer

  def perform(blob)
    blob.analyze
  end
end

Version data entries

108 entries across 104 versions & 9 rubygems

Version Path
activestorage-7.0.2 app/jobs/active_storage/analyze_job.rb
activestorage-7.0.1 app/jobs/active_storage/analyze_job.rb
activestorage-7.0.0 app/jobs/active_storage/analyze_job.rb
activestorage-6.1.4.4 app/jobs/active_storage/analyze_job.rb
activestorage-6.0.4.4 app/jobs/active_storage/analyze_job.rb
activestorage-7.0.0.rc3 app/jobs/active_storage/analyze_job.rb
activestorage-6.1.4.3 app/jobs/active_storage/analyze_job.rb
activestorage-6.0.4.3 app/jobs/active_storage/analyze_job.rb
activestorage-6.0.4.2 app/jobs/active_storage/analyze_job.rb
activestorage-6.1.4.2 app/jobs/active_storage/analyze_job.rb
activestorage-7.0.0.rc2 app/jobs/active_storage/analyze_job.rb
activestorage-7.0.0.rc1 app/jobs/active_storage/analyze_job.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/activestorage-6.1.4.1/app/jobs/active_storage/analyze_job.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/activestorage-6.1.4.1/app/jobs/active_storage/analyze_job.rb
activestorage-7.0.0.alpha2 app/jobs/active_storage/analyze_job.rb
activestorage-7.0.0.alpha1 app/jobs/active_storage/analyze_job.rb
activestorage-6.1.4.1 app/jobs/active_storage/analyze_job.rb
activestorage-6.0.4.1 app/jobs/active_storage/analyze_job.rb
rails_mini_profiler-0.2.0 vendor/bundle/ruby/3.0.0/gems/activestorage-6.1.4/app/jobs/active_storage/analyze_job.rb
activestorage-6.1.4 app/jobs/active_storage/analyze_job.rb