Skip to content

Commit

Permalink
metadata retry
Browse files Browse the repository at this point in the history
  • Loading branch information
terrywbrady committed Dec 18, 2023
1 parent 380adad commit ffd5486
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/models/inv_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,15 @@ def producer_files
end

def metadata(element)
inv_dublinkernels.select { |md| md.element == element && md.value != '(:unas)' }.map(&:value)
retries = 0
begin
inv_dublinkernels.select { |md| md.element == element && md.value != '(:unas)' }.map(&:value)
# :nocov:
rescue StandardError => e
retries += 1
retries > RETRY_LIMIT ? raise(e) : retry
end
# :nocov:
end

def dk_who
Expand Down

0 comments on commit ffd5486

Please sign in to comment.