Skip to content

Commit

Permalink
slow down loop_through_dois #585
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jul 17, 2020
1 parent be84ca0 commit af7d57b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/doi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1904,6 +1904,7 @@ def self.loop_through_dois(options)
ids = response.results.results.map(&:uid)
ids.each do |id|
Object.const_get(job_name).perform_later(id, options)
sleep 0.1
end
end
end
Expand Down

0 comments on commit af7d57b

Please sign in to comment.