Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
πŸ’„ disable rubocop Metrics/LineLength for characterize job
Browse files Browse the repository at this point in the history
  • Loading branch information
Shana Moore committed Nov 6, 2023
1 parent 70b683b commit add605c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/jobs/characterize_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class CharacterizeJob < Hyrax::ApplicationJob
# @param [String] file_id identifier for a Hydra::PCDM::File
# @param [String, NilClass] filepath the cached file within the Hyrax.config.working_path
def perform(file_set, file_id, filepath = nil)
# rubocop:disable Metrics/LineLength
raise "#{file_set.class.characterization_proxy} was not found for FileSet #{file_set.id}" unless file_set.characterization_proxy?
filepath = Hyrax::WorkingDirectory.find_or_retrieve(file_id, file_set.id) unless filepath && File.exist?(filepath)
Hydra::Works::CharacterizationService.run(file_set.characterization_proxy, filepath, ch12n_tool: :fits_servlet)
Expand All @@ -18,5 +19,6 @@ def perform(file_set, file_id, filepath = nil)
file_set.update_index
file_set.parent&.in_collections&.each(&:update_index)
CreateDerivativesJob.perform_later(file_set, file_id, filepath)
# rubocop:enable Metrics/LineLength
end
end

0 comments on commit add605c

Please sign in to comment.