![]() |
|
go ahead... be a heretic | |
PerlMonks |
Re: Parallel::ForkManager and wait_all_childrenby rgren925 (Beadle) |
on May 13, 2015 at 23:02 UTC ( #1126616=note: print w/replies, xml ) | Need Help?? |
Thanks all for the replies. I've tried to synthesize the different approaches. To flesh this out a bit, I'm planning on using callbacks (run_on_wait) to manage notifying/killing a hung process. Using the alarm(TIMEOUT) doesn't really solve my problem. If I set the timeout to 60, no other processes will run until that 60 seconds has elapsed as the wait_all_children still isn't satisfied. wait_for_available_procs (which was newer than my version of Parallel::ForkManager--so I upgraded) didn't seem to make any difference. The callbacks indicate that everything stalls until the looping test4.sh script is killed.
In Section
Seekers of Perl Wisdom
|
|