Mantis - Resin
Viewing Issue Advanced Details
4560 minor always 05-16-11 13:22 07-07-11 11:18
alex  
ferg  
normal  
closed 3.1.9  
fixed  
none    
none 4.0.20  
0004560: ScheduledTask pushes nextTime out for a week.
rep. by Tyson Weighs
We've been racking our brains over why our scheduled tasks work in
3.1.8 and not 3.1.9. It turns out they work, but a change in 3.1.9 is
causing the nextTime to get pushed out a week. Here's some log
statements from resin:

[2009/11/01 13:25:23.747]
ScheduledTask[com.foreflight.notam.NOTAMDownloadService$BeanProxy@6bebe2a7,CronType[*/10
* * * *]] started. Next event at Sun Nov 08 19:30:00 GMT 2009
[2009/11/01 13:25:23.748]
ScheduledTask[com.foreflight.wdt.AirportPriorityExportService$BeanProxy@4b6d794b,CronType[0
0 1 * *]] started. Next event at Tue Dec 01 06:00:00 GMT 2009
[2009/11/01 13:25:23.748]
ScheduledTask[com.foreflight.plan.FutureFlightPlanTask$BeanProxy@36519d,CronType[*/5
* * * *]] started. Next event at Sun Nov 08 19:30:00 GMT 2009

I ran this today, and even though there is a "*" in the day of week
field, our tasks won't start running for a week.

I noticed a diff between CronType in 3.1.8 and 3.1.9 in the "nextTime"
method that may be the culprit. It looks like a day is getting
subtracted in 3.1.9 that wasn't in 3.1.8.

We really need to get 3.1.9 in production b/c of the mem leak issue in
3.1.8. Is it possible for a patch to get pushed that fixes this
scheduled task issue?

Notes
(0005367)
ferg   
07-07-11 11:18   
server/133j