Module: SuckerPunch::Job::ClassMethods

Defined in:
lib/sucker_punch/job.rb

Instance Method Summary collapse

Instance Method Details

#define_celluloid_pool(klass, num_workers) ⇒ Object


19
20
21
# File 'lib/sucker_punch/job.rb', line 19

def define_celluloid_pool(klass, num_workers)
  SuckerPunch::Queue.new(klass).register(num_workers)
end

#workers(num) ⇒ Object


15
16
17
# File 'lib/sucker_punch/job.rb', line 15

def workers(num)
  @workers = num
end