title: How do I inspect what was the last failed job in Resque?
body: <p>I know it returns a hash, but its strange how the syntax goes.. I'm trying to find out what the last one is.</p>
  
  <p>If I do this :</p>
  
  <pre><code>Resque.info[:failed] # -&gt; 68
  </code></pre>
  
  <p>So assuming there's 68 failed jobs, when I do this :</p>
  
  <pre><code>Resque::Failure.all()
  </code></pre>
  
  <p>It only returns one job ( I believe its the first job ).</p>
  
  <p>I think this is just a syntactical error on my part. Because I've also seen this :</p>
  
  <pre><code>Resque::Failure.all(0, 20)
  </code></pre>
  
  <p>Which I believe would pull an array of indices between 0 and 20.</p>
  
  <p>So.. anyone know the syntactical clause to pull just the last failed job?</p>