title: Find out if a resque job is still running and kill it if it's stuck
body: <p>I have an application that uses resque to run some long-running jobs. Sometimes the take 8 hours or more to complete.</p>
  
  <p>In situations where the job fails, is there a way to monitor resque itself to see if the job is running? I know I can update the job's status in a database table (or in redis itself), but I want to know if the job is still running so I can kill it if necessary. </p>
  
  <p>The specific things I need to do are:</p>
  
  <ul>
  <li>Determine if the job is still running</li>
  <li>Determine if the job has stopped</li>
  <li>Kill jobs that are stuck</li>
  </ul>