Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003736 [Resin] minor always 11-02-09 09:57 02-18-10 12:10
Reporter alex View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.1.9
Summary 0003736: broken ScheduledTask
Description rep by: tweihs on [resin-interest]

Here's the config we have:

   <scheduled-task type="mm.services.DownloadService"
name="DownloadService">
       <cron>3,7,15,20,25,30,35,40,45,50,54,58 * * * *</cron>
   </scheduled-task>

Running this today (Nov 1), the next start time is set to Nov 8. I set
resin's debug level to finer, and all scheduled tasks now start a week late.

Although I have "*" in the day of week block, CronType is advancing the next
time to current day + 7. There was one change made to CronType between
3.1.8 and 3.1.9, which is highlighted below. 3.1.8 does not push the next
start time out a week.

if (_daysOfWeek != null) {
    int oldDayOfWeek = cal.getDayOfWeek() - 1;
    int dayOfWeek = nextInterval(_daysOfWeek, oldDayOfWeek);

if (dayOfWeek > 0) {
      day += (dayOfWeek - oldDayOfWeek);
    }
    else {
      dayOfWeek = nextInterval(_daysOfWeek, 0);
      
      day += (dayOfWeek - oldDayOfWeek + 7);
    }
Additional Information
Attached Files

- Relationships

- Notes
(0004441)
ferg
02-18-10 12:10

server/2i49
 

- Issue History
Date Modified Username Field Change
11-02-09 09:57 alex New Issue
11-02-09 09:58 alex Description Updated
02-18-10 12:10 ferg Note Added: 0004441
02-18-10 12:10 ferg Assigned To  => ferg
02-18-10 12:10 ferg Status new => closed
02-18-10 12:10 ferg Resolution open => fixed
02-18-10 12:10 ferg Fixed in Version  => 4.0.4


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker