Skip Menu |

This queue is for tickets about the Schedule-Cron CPAN distribution.

Report information
The Basics
Id: 50325
Status: resolved
Priority: 0/
Queue: Schedule-Cron

People
Owner: roland [...] cpan.org
Requestors: develop [...] traveljury.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.99
Fixed in: (no value)



Subject: Wrong range for seconds causes infinite loop
Hi Roland You have a bug in Schedule::Cron when specifying cron times with seconds, eg: * * * * * */10 Your @RANGE for seconds should be 0,59, not 0.60: my @RANGES = ( [ 0,59 ], [ 0,23 ], [ 0,31 ], [ 0,12 ], [ 0,7 ], [ 0,59 ] ### WAS [0,60] ); At the moment, the cron daemon goes into an infinite loop and chews CPU big time! thanks Clint
Hi Clint, thanx for your report, you are absolutely right. I fixed it (including a test), currently it is available on github. I will release a 1.00_1 rather soon, expect the final 1.00 near the end of this year (celebrating Schedule::Crons 10th anniversary ;-), but if pressure is high enough, I will release earlier, of course. On Thu Oct 08 07:39:15 2009, DRTECH wrote: Show quoted text
> Hi Roland > > You have a bug in Schedule::Cron when specifying cron times with > seconds, eg: > > * * * * * */10 > > Your @RANGE for seconds should be 0,59, not 0.60: > > my @RANGES = ( > [ 0,59 ], > [ 0,23 ], > [ 0,31 ], > [ 0,12 ], > [ 0,7 ], > [ 0,59 ] ### WAS [0,60] > ); > > At the moment, the cron daemon goes into an infinite loop and chews CPU > big time! > > thanks > > Clint
Subject: Re: [rt.cpan.org #50325] Wrong range for seconds causes infinite loop
Date: Thu, 15 Oct 2009 10:00:27 +0200
To: Roland Huss via RT <bug-Schedule-Cron [...] rt.cpan.org>
From: Clinton Gormley <clint [...] traveljury.com>
Hi Roland Show quoted text
> Hi Clint, > > thanx for your report, you are absolutely right. > I fixed it (including a test), currently it is > available on github. I will release a 1.00_1 rather > soon, expect the final 1.00 near the end of this year > (celebrating Schedule::Crons 10th anniversary ;-), > but if pressure is high enough, I will release earlier, > of course.
thanks for that - no pressure from me. i've got it fixed locally ta clint Show quoted text
>
 Fixed in 1.00.