module Procrastinator::Scheduler::SerialWorking

Serial work style

@see WorkProxy

Public Instance Methods

serially(steps: 1) click to toggle source

Work off the given number of tasks for each queue and return @param steps [integer] The number of tasks to complete.

# File lib/procrastinator/scheduler.rb, line 118
def serially(steps: 1)
   steps.times do
      workers.each(&:work_one)
   end
end