Skip to content
Browse files

Make the reaper slightly more robust in the nudging department

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2264 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 6f95c49 commit 5da4c397826b26368efdd0eefc433f990bc90345 @dhh dhh committed Sep 19, 2005
Showing with 7 additions and 1 deletion.
  1. +7 −1 railties/bin/process/reaper
View
8 railties/bin/process/reaper
@@ -6,7 +6,13 @@ require 'uri'
def nudge(url, iterations)
print "Nudging #{url}: "
- iterations.times { Net::HTTP.get_response(URI.parse(url)); print "."; STDOUT.flush }
+
+ iterations.times do
+ Net::HTTP.get_response(URI.parse(url)) rescue nil
+ print "."
+ STDOUT.flush
+ end
+
puts
end

0 comments on commit 5da4c39

Please sign in to comment.
Something went wrong with that request. Please try again.