class Fragmentary::Dispatcher
Public Class Methods
new(tasks)
click to toggle source
# File lib/fragmentary/dispatcher.rb, line 4 def initialize(tasks) @tasks = tasks end
Public Instance Methods
perform()
click to toggle source
# File lib/fragmentary/dispatcher.rb, line 8 def perform @tasks.each do |task| Rails.logger.info "***** Dispatching task for handler class #{task.class.name}" task.call end RequestQueue.all.each do |queue| queue.start end end