Rufus-Scheduler

Simple scheduler that runs periodically. Code is Really Simple. scheduler = Rufus::Scheduler.start_new scheduler.in '20m' do puts "order ristretto" end The Usage is Really Simple In Rails Environment. I'll take the example of Rake task First. I will try to create a resque:work like task. task :my_scheduler_work => :environment do scheduler = Rufus::Scheduler.start_new scheduler.in '20m' do User.call_some_method end end Doing This in an non rails Env. For Ex: abcd.rake require 'rake' # require 'abcd' # File with all the classes and libs that are needed for rake task to run. task