Class: Puppet::Scheduler::Scheduler
- Defined in:
- lib/puppet/scheduler/scheduler.rb
Instance Method Summary collapse
-
#initialize(timer = Puppet::Scheduler::Timer.new) ⇒ Scheduler
constructor
A new instance of Scheduler.
- #run_loop(jobs) ⇒ Object
Constructor Details
Instance Method Details
#run_loop(jobs) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/puppet/scheduler/scheduler.rb', line 9 def run_loop(jobs) mark_start_times(jobs, @timer.now) until enabled(jobs).empty? @timer.wait_for(min_interval_to_next_run_from(jobs, @timer.now)) run_ready(jobs, @timer.now) end end |