I want to execute some task for a specific time period. Lets say I want to execute cronjob or some rake task between 6am to 9am for every half an hour. So script will get execute 6, 6:30, 7, 7:30... and last at 9.
Can you please give me some suggestion that how I can do this with Rails.
Don't tell me that schedule individual task for 6, 6:30, 7.. time period.
ANS
Simplest way I have found is to use whenever gem and adding cronjob time as below.
every '*/30 6-9 * * *' do
runner "Model.method"
end