rakeタスクの開始から終了までの間隔を2分にする方法はありますか?例えばcronを使ってrakeタスクを実行するには、それぞれの実行の間に時間ギャップがありますか?
:
1:00 PM: Run a rake task
Task will usually take 30 seconds to complete, but could take 5 minutes.
The task took 3 minutes to complete in this first run.
1:02 PM: cron has been scheduled to run task every 2 minutes but the previous
task has not completed yet, so cron should not run this task right now
1:03 PM: task has completed
cron should wait 2 minutes
1:05 PM cron should re-run the task
レーキタスクにエラーがある場合、その「再スケジュール」コードは実行されないことがありますか? – Zabba
レーキタスクのエラーからレスキューすることができます。スケジュールを変更するには、 'at'コマンドを使用します。 – taro