Module: Procrastinator::Scheduler::SerialWorking

Included in:
WorkProxy
Defined in:
lib/procrastinator/scheduler.rb

Overview

Serial work style

See Also:

Instance Method Summary collapse

Instance Method Details

#serially(steps: 1) ⇒ Object

Work off the given number of tasks for each queue and return



123
124
125
126
127
# File 'lib/procrastinator/scheduler.rb', line 123

def serially(steps: 1)
   steps.times do
      workers.each(&:work_one)
   end
end