Displaying 1 result from an estimated 1 matches for "req_on_finish".
2006 Aug 24
3
A new QueueWorker class
...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: do you want results to be stored in the queue until you
call job_prog...