Sha256: 84cad56fd63b86af612b28a4a1445a35a486f8427ceb18e356410238f6437f79
Contents?: true
Size: 620 Bytes
Versions: 2
Compression:
Stored size: 620 Bytes
Contents
class CharacterizeJob < ActiveJob::Base queue_as CurationConcerns.config.ingest_queue_name # @param [FileSet] file_set # @param [String] filename a local path for the file to characterize so we don't have to pull a copy out of fedora. def perform(file_set, filename) raise LoadError, "#{file_set.class.characterization_proxy} was not found" unless file_set.characterization_proxy? Hydra::Works::CharacterizationService.run(file_set.characterization_proxy, filename) file_set.characterization_proxy.save! file_set.update_index CreateDerivativesJob.perform_later(file_set, filename) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
curation_concerns-1.0.0.beta5 | app/jobs/characterize_job.rb |
curation_concerns-1.0.0.beta4 | app/jobs/characterize_job.rb |