Skip to content

Commit

Permalink
Try to avoid arxiv rate limiting
Browse files Browse the repository at this point in the history
  • Loading branch information
marwahaha committed Nov 1, 2023
1 parent 0de6fcb commit 53aa377
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/tasks/arxiv_authorship_update.rake
Expand Up @@ -15,6 +15,9 @@ namespace :arxiv do
rescue ActiveRecord::RecordInvalid => invalid
$stderr.puts "Couldn't add new authorship, probably missing a paper in the database!"
$stderr.puts invalid.record.errors
rescue Errno::ECONNRESET
$stderr.puts "Connection error, let's skip this user and wait"
sleep 10
end

$stderr.puts "Finished syncing authorship for #{user.username}"
Expand Down

0 comments on commit 53aa377

Please sign in to comment.