This question will probably only make sense if you know about the whenever gem for creating cron jobs. I have a task in my schedule.rb like
every 1.day, :at =&g
I would consider using the "rake" shortcut to make it even cleaner:
every 1.day, :at => '4am' do rake "thinking_sphinx:stop" rake "thinking_sphinx:index" rake "thinking_sphinx:start" end