rails' cron rufus-scheduler

越涛
2023-12-01
1 installation

sudo gem install rufus-scheduler --source http://gemcutter.org

2 usage

require 'rubygems'
require 'rufus/scheduler'

scheduler = Rufus::Scheduler.start_new
scheduler.every("10s") do
run something--
end
 类似资料: