Class: CharacterizeJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
app/jobs/characterize_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(file_set, filename) ⇒ Object

Parameters:

  • file_set (FileSet)
  • filename (String)

    a local path for the file to characterize. By using this, we don’t have to pull a copy out of fedora.



6
7
8
9
10
# File 'app/jobs/characterize_job.rb', line 6

def perform(file_set, filename)
  Hydra::Works::CharacterizationService.run(file_set, filename)
  file_set.save!
  CreateDerivativesJob.perform_later(file_set, filename)
end