Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: POE::COMPONENT::JobQueue, dynamic number of workers

by rhesa (Vicar)
on Sep 12, 2008 at 20:07 UTC ( #711001=note: print w/ replies, xml ) Need Help??


in reply to POE::COMPONENT::JobQueue, dynamic number of workers

There's no API for it, no. The proper way to do that, then, is to signal the current queue that it should stop, and spawn a new queue with the desired WorkerLimit in its place.

The documented way to stop a running queue is:

# Stop a running queue $kernel->call( $queue_alias => 'stop' );


Comment on Re: POE::COMPONENT::JobQueue, dynamic number of workers
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://711001]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2014-10-26 08:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (152 votes), past polls