title: Advanced Scheduler rake task aborted during sleep command
body: <p>I have a Rails rake task that runs through Advanced Scheduler. Due to the service provider API quota limitation, I'm forced to sleep every 100 requests for a while to avoid hitting the quota. When I run the job from console directly, it works fine. However when using Advanced Scheduler, it runs for a while, doing several Sleep commands successfully, and then randomly at one sleep command execution I get</p>
  <p><code>rake aborted</code></p>
  <p><code>SignalException: SIGTERM</code></p>
  <p>Any idea why this is happening, and how to deal with it? The job is not exceeding 24 hours, so it's not hitting the next scheduled event.</p>