必威体育Betway必威体育官网
当前位置:首页 > IT技术

whenever

时间:2019-08-19 22:43:14来源:IT技术作者:seo实验室小编阅读:76次「手机版」
 

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

相关阅读

分享到:

栏目导航

推荐阅读

热门阅读