Sha256: 1d3880b7044d7414e240097bb731f89e75b6307dacd89d8b5692b0b8f4901b88

Contents?: true

Size: 494 Bytes

Versions: 18

Compression:

Stored size: 494 Bytes

Contents

module Kithe
  class CreateDerivativesJob < Job
    def perform(asset)
        asset.create_derivatives
    end
    # This error typically occurs when several large assets, whose derivatives
    # take a long time to generate, are deleted immediately after ingest.
    rescue_from(ActiveJob::DeserializationError) do |exception|
      Rails.logger.error("Kithe::CreateDerivativesJob: Unable to create derivatives for this asset, as it was unavailable. Details: #{exception}")
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
kithe-2.9.1 app/jobs/kithe/create_derivatives_job.rb
kithe-2.9.0 app/jobs/kithe/create_derivatives_job.rb
kithe-2.8.0 app/jobs/kithe/create_derivatives_job.rb
kithe-2.7.1 app/jobs/kithe/create_derivatives_job.rb
kithe-2.7.0 app/jobs/kithe/create_derivatives_job.rb
kithe-2.6.1 app/jobs/kithe/create_derivatives_job.rb
kithe-2.6.0 app/jobs/kithe/create_derivatives_job.rb
kithe-2.5.0 app/jobs/kithe/create_derivatives_job.rb
kithe-2.4.0 app/jobs/kithe/create_derivatives_job.rb
kithe-2.3.0 app/jobs/kithe/create_derivatives_job.rb
kithe-2.2.0 app/jobs/kithe/create_derivatives_job.rb
kithe-2.1.0 app/jobs/kithe/create_derivatives_job.rb
kithe-2.0.3 app/jobs/kithe/create_derivatives_job.rb
kithe-2.0.2 app/jobs/kithe/create_derivatives_job.rb
kithe-2.0.1 app/jobs/kithe/create_derivatives_job.rb
kithe-2.0.0 app/jobs/kithe/create_derivatives_job.rb
kithe-2.0.0.pre.rc1 app/jobs/kithe/create_derivatives_job.rb
kithe-2.0.0.pre.beta1 app/jobs/kithe/create_derivatives_job.rb