title: How to exit the rake task when running timeout?
body: <p>I set a cron job to run a rake task. This task will do somethings, such as send a post request...</p>
  
  <p>If timeout, process cannot finished normally. How to set a timeout time, if this time is surpassed,</p>
  
  <p>then the rake task will exit.</p>