Class Rufus::Scheduler::JobQueue
In: lib/rufus/sc/jobqueues.rb
Parent: Object

Tracking at/in/every jobs.

In order of trigger time.

Methods

Constants

JOB_TYPES = { :at => Rufus::Scheduler::AtJob, :in => Rufus::Scheduler::InJob, :every => Rufus::Scheduler::EveryJob   Mapping :at|:in|:every to their respective job classes.

Public Class methods

Public Instance methods

Adds this job to the map.

Returns a list of jobs of the given type (:at|:in|:every)

Returns a mapping job_id => job

Triggers all the jobs that are scheduled for ‘now’.

Removes a job (given its id). Returns nil if the job was not found.

Protected Instance methods

Returns the next job to trigger. Returns nil if none eligible.

[Validate]