On Thu, Apr 16, 2009 at 07:44:39PM +0100, David Cantrell wrote:
> On Thu, Apr 16, 2009 at 06:32:08PM +0100, Paul LeoNerd Evans wrote:
> > On Thu, Apr 16, 2009 at 06:18:45PM +0100, David Cantrell wrote:
> > > Anyone recommend a module to give me something like system(@list) but
> > > with a timeout?
On Thu, Apr 16, 2009 at 06:32:08PM +0100, Paul LeoNerd Evans wrote:
> On Thu, Apr 16, 2009 at 06:18:45PM +0100, David Cantrell wrote:
> > Anyone recommend a module to give me something like system(@list) but
> > with a timeout?
> Does IPC::Run have something suitable? I seem to recall it has quite
On Thu, Apr 16, 2009 at 06:18:45PM +0100, David Cantrell wrote:
> Anyone recommend a module to give me something like system(@list) but
> with a timeout?
Does IPC::Run have something suitable? I seem to recall it has quite a
lot of interesting things to fiddle with...
--
Paul "LeoNerd" Evans
le
Anyone recommend a module to give me something like system(@list) but
with a timeout? My first attempt at writing it left processes hanging
around, which is Bad:
eval {
local $SIG{ALRM} = sub { die("Timed out\n"); };
alarm(5);
system(@list);
alarm(0);
};
The obvious solution
On Wed, 15 Apr 2009 18:16:56 -0700
"Randy J. Ray" wrote:
> 1. Init job queue
> 2. Add first task, which should happen immediately
> 3. (Loop starts here) Queue/Event-handler knows how long it has to
> wait before peeling the next task off the head of the queue and
> processing it.
> 4. Ta
T'was a few years since I used this,
& the namespace has changed,
but perhaps of some use? :
http://search.cpan.org/~lembark/Parallel-Queue-2.01/
mart.
2009/4/16 Randy J. Ray :
> I might be using the wrong tech-terminology here, so bear with me...
>
> What I'm looking for is a best-of-breed sort
On Thu, 16 Apr 2009, Peter Corlett wrote:
On Wed, Apr 15, 2009 at 06:16:56PM -0700, Randy J. Ray wrote:
What I'm looking for is a best-of-breed sort of CPAN solution for a
job-queue processor in which the jobs are run based on time. Not quite
"cron", mind you, but not too different from that. I
On Wed, Apr 15, 2009 at 06:16:56PM -0700, Randy J. Ray wrote:
> What I'm looking for is a best-of-breed sort of CPAN solution for a
> job-queue processor in which the jobs are run based on time. Not quite
> "cron", mind you, but not too different from that. In essence:
What you described sounds aw
2009/4/16 Randy J. Ray :
> I might be using the wrong tech-terminology here, so bear with me...
>
> What I'm looking for is a best-of-breed sort of CPAN solution for a
> job-queue processor in which the jobs are run based on time. Not quite
> "cron", mind you, but not too different from that. In es