Displaying 1 result from an estimated 1 matches for "num_child_workers".
2006 Aug 24
3
A new QueueWorker class
...e about same as normal
If it''s a big loop, you probably want to use terminate?() on each
iteration and update @progress. Use suicide() at the end to make room
for the next child.
Options: (probably in your backgroundrb.yml)
autostart:
:queue_key:
class: queue_worker
args:
:num_child_workers: 2
:child_class: :cost_calculator_worker
:reQ_on_finish: true
:singleton: true
:queue_key can be changed to what you want, but it is the permanent key
of the QueueWorker
:num_child_workers: is up to you!
:child_class: your worker class you want as child workers.
:reQ_on_finish: d...