From 55e9c2aff63c78fb17cc4ea08194d8f9c88abf88 Mon Sep 17 00:00:00 2001 From: Kunal Marwaha Date: Sun, 29 Oct 2023 23:12:01 -0400 Subject: [PATCH] Dont query arXiv as often --- lib/tasks/arxiv_authorship_update.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/arxiv_authorship_update.rake b/lib/tasks/arxiv_authorship_update.rake index 4014c88..a2dc0f3 100644 --- a/lib/tasks/arxiv_authorship_update.rake +++ b/lib/tasks/arxiv_authorship_update.rake @@ -9,7 +9,7 @@ namespace :arxiv do begin $stderr.puts "Updating username #{user.username}" user.update_authorship! - sleep 1 + sleep 2 rescue OpenURI::HTTPError $stderr.puts "Invalid author_identifier for #{user.username}: #{user.author_identifier}" rescue ActiveRecord::RecordInvalid => invalid