whenever
whenever 定时任务(sidekiq 为异步任务) https://github.com/javan/whenever
http://blog.csdn.net/vito0705/article/details/52932014
Whenever is a Ruby gem that provides a clear syntax for writing and deploying cron jobs.
$ gem install whenever
# Or with Bundler in your Gemfile.
gem 'whenever', :require => false
# Getting started
$ cd /APPs/my-great-project
$ wheneverize .whenever
# schedule.rb
every 1.day, :at => '2:30 am' do
rake "app:unfreeze_earnings"
end
every 12.hours do
rake "app:reward_inviter"
end
every 4.hours do
rake "app:read_order"
end