Jeff Jolma
2008-Jun-19 13:24 UTC
[Backgroundrb-devel] how to run multiple instances of the same worker
Hi all. How do I run multiple instances of the same worker in one BackgrounDRB instance. My worker sits in a loop polling a job queue and hitting a web service. Since this is so network bound, I''d like to run multiple instances of the worker. Thanks, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080619/29ebab39/attachment.html>
hemant
2008-Jun-19 13:33 UTC
[Backgroundrb-devel] how to run multiple instances of the same worker
On Thu, Jun 19, 2008 at 6:54 PM, Jeff Jolma <jjolma at gmail.com> wrote:> Hi all. > > How do I run multiple instances of the same worker in one BackgrounDRB > instance. My worker sits in a loop polling a job queue and hitting a web > service. Since this is so network bound, I''d like to run multiple instances > of the worker. >MiddleMan.new_worker(:worker => <worker_name>,:job_key => "og boy")