class Rufus::Scheduler::JobQueue

def trigger_matching_jobs


Triggers all the jobs that are scheduled for 'now'.
def trigger_matching_jobs
  now = Time.now
  while job = job_to_trigger(now)
    job.trigger
  end
end