Anonymous | Login | Signup for a new account | 12-17-2024 08:49 PST |
Main | My View | View Issues | Change Log | Docs |
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 | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed. 26 unique queries executed. |