Sha256: ebca6ee88a9442095d032968dfe5446503426a1c5b4740169f9e658ed5cf10c1

Contents?: true

Size: 424 Bytes

Versions: 9

Compression:

Stored size: 424 Bytes

Contents

class CharacterizeJob < ActiveFedoraIdBasedJob
  queue_as :characterize

  # @param [String] id
  # @param [String] filename a local path for the file to characterize. By using this, we don't have to pull a copy out of fedora.
  def perform(id, filename)
    @id = id
    Hydra::Works::CharacterizationService.run(file_set, filename)
    file_set.save
    CreateDerivativesJob.perform_later(file_set.id, filename)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
curation_concerns-models-0.10.0 app/jobs/characterize_job.rb
curation_concerns-models-0.9.0 app/jobs/characterize_job.rb
curation_concerns-models-0.8.0 app/jobs/characterize_job.rb
curation_concerns-models-0.7.0 app/jobs/characterize_job.rb
curation_concerns-models-0.6.0 app/jobs/characterize_job.rb
curation_concerns-models-0.5.0 app/jobs/characterize_job.rb
curation_concerns-models-0.4.0 app/jobs/characterize_job.rb
curation_concerns-models-0.3.0 app/jobs/characterize_job.rb
curation_concerns-models-0.2.0 app/jobs/characterize_job.rb