SiT! Bugs

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000736SiT!schedulerpublic2009-06-16 15:452009-08-16 14:39
Reportermfeider67 
Assigned Toivan 
PrioritynormalSeverityminorReproducibilitysometimes
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version3.45 
Target Version3.50Fixed in Version3.50 
Summary0000736: scheduler time check
Descriptionscheduler only runs every other time due to race condition on when time gets updated and if is = rather than simply <
Additional InformationIn functions.inc.php::schedule_actions_due, line 5550

    $sql .= "AND IF(UNIX_TIMESTAMP(lastran) > 0, UNIX_TIMESTAMP(lastran) + `interval` < $now, UNIX_TIMESTAMP(NOW())) ";

should be

    $sql .= "AND IF(UNIX_TIMESTAMP(lastran) > 0, UNIX_TIMESTAMP(lastran) + `interval` <= $now, UNIX_TIMESTAMP(NOW())) ";

notice the '<=' instead of '<'
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
User avatar (0001217)
ivan (administrator)
2009-06-16 17:45

Added in trunk svn r5468 - thanks for the patch I didn't spot that one at all.
User avatar (0001634)
ivan (administrator)
2009-08-16 14:39

Released in 3.50rc1

- Issue History
Date Modified Username Field Change
2009-06-16 15:45 mfeider67 New Issue
2009-06-16 17:14 kieran Status new => confirmed
2009-06-16 17:14 kieran Target Version => 3.50
2009-06-16 17:45 ivan Note Added: 0001217
2009-06-16 17:45 ivan Assigned To => ivan
2009-06-16 17:45 ivan Status confirmed => resolved
2009-06-16 17:45 ivan Resolution open => fixed
2009-06-16 17:45 ivan Fixed in Version => Current SVN
2009-08-16 13:16 ivan Fixed in Version Current SVN => 3.50
2009-08-16 14:39 ivan Note Added: 0001634
2009-08-16 14:39 ivan Status resolved => closed


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker