class Rufus::Scheduler::SignalScheduler


10 / USR1 signal.
A rufus-scheduler that steps only when the ruby process receives the

def initialize(opts={})

def initialize(opts={})
  super(opts)
  trap(@options[:signal] || 10) do
    step
  end
end

def stop(opts={})


will not interrupt the job run).
currently running, this method will wait for it to terminate, it
(note that if a job is

are done with their current run if any.
the method will return once all the jobs have been unscheduled and
If the option :terminate is set to true,

== :terminate => true

Stops this scheduler.
def stop(opts={})
  trap(@options[:signal] || 10)
  terminate_all_jobs if opts[:terminate]
end