We don't bite newbies here... much | |
PerlMonks |
Re: Threaded Application Sequencing/Rendezvousby roboticus (Chancellor) |
on Jul 11, 2012 at 00:33 UTC ( [id://980987]=note: print w/replies, xml ) | Need Help?? |
The last time I did a system like that it worked pretty much like this:
Basically, each task knows what its prerequisite tasks are, and will fire off only when all its prerequisites are satisfied. The original also handled error cases by simply restarting the failed jobs after a delay. (On that system, most failures were due to missing files, so re-running was sufficient to fix most problems.) Also, I used a database as the scratchpad, so that the system could recover properly if the system went down and then recovered. I'd post the code, but it was C# rather than perl. ...roboticus When your only tool is a hammer, all problems look like your thumb.
In Section
Seekers of Perl Wisdom
|
|