class Rufus::Scheduler
def step
'cron' jobs get executed if necessary then 'at' jobs.
determine if there are jobs to trigger else to get back to sleep.
(by default 4 times per second). It's meant to quickly
This is the method called each time the scheduler wakes up
def step #puts Time.now.to_f #puts @pending_jobs.collect { |j| [ j.job_id, j.at ] }.inspect step_unschedule # unschedules any job in the unschedule queue before # they have a chance to get triggered. step_trigger # triggers eligible jobs step_schedule # schedule new jobs # done. end