Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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' );

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2016-10-23 18:31 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (301 votes). Check out past polls.