Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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' );

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://711001]
help
Chatterbox?
and cookies bake in the oven...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2017-09-26 02:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (291 votes). Check out past polls.

    Notices?