title: Ruby - Execution expired
body: <p>I have a ruby code like this:</p>
  
  <pre><code>begin
    doc = Nokogiri::HTML(open(url).read.strip)
  rescue Exception =&gt; ex
    log.error "Error: #{ex}"
  end
  </code></pre>
  
  <p>And I am getting log as:</p>
  
  <pre><code>ERROR -- : Error: execution expired
  </code></pre>
  
  <p>I want block re-execute until it success. </p>
  
  <p>How can I do it? </p>