Class | Rufus::Scheduler::SchedulerCore |
In: |
lib/rufus/sc/scheduler.rb
|
Parent: | Object |
The core of a rufus-scheduler. See implementations like Rufus::Scheduler::PlainScheduler and Rufus::Scheduler::EmScheduler for directly usable stuff.
options | [R] | classical options hash |
Schedules a job given a cron string.
scheduler.cron '0 22 * * 1-5' do # every day of the week at 00:22 puts 'activate security system' end
Feel free to override this method. The default implementation simply outputs the error message to STDOUT
Unschedules a job (cron or at/every/in job) given its id.
Returns the job that got unscheduled.
The default, plain, implementation. If ‘blocking’ is true, will simply call the block and return when the block is done. Else, it will call the block in a dedicated thread.
TODO : clarify, the blocking here blocks the whole scheduler, while EmScheduler blocking triggers for the next tick. Not the same thing …