Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by rhesa (Vicar)
on Sep 12, 2008 at 20:07 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://711001]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-25 09:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found