Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: POE server task scheduling

by Ultra (Hermit)
on Dec 28, 2007 at 23:45 UTC ( [id://659427]=note: print w/replies, xml ) Need Help??


in reply to POE server task scheduling

I need to make sure that the processes are spawned as near to the scheduled time as possible (within seconds). Since several jobs will likely need to spawn processes at the same time, I will most likely need to fork (the processes may not return on a regular schedule and I don’t want one bad apple screwing the whole lot of them). I don’t see in POE a good way to guarantee that a schedule update won’t interfere with processes being kicked off at the right time

You just need the POE server running, and for each external process it should start, you use POE::Wheel::Run to fork off that process, thus your server will run continuously without blocking and at the same time it can keep track of the forked off apps and when they finished (and maybe what were the results also)

Dodge This!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (7)
As of 2024-03-28 10:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found