From af7d57b3f5558bbe09840b980056fa09002c1ba0 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Fri, 17 Jul 2020 19:38:50 +0200 Subject: [PATCH] slow down loop_through_dois #585 --- app/models/doi.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/doi.rb b/app/models/doi.rb index fa42d7b4e..05cb841f1 100644 --- a/app/models/doi.rb +++ b/app/models/doi.rb @@ -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