Files
ofbiz-framework/framework
Michael Brohl 9b54d99541 Fixed: Fix TemporalExpressions.Frequency to avoid moving job start times away
from given freqCount raster.
(OFBIZ-9374)

If a job is scheduled using TemporalExpressions.Frequency the start time of the 
job will gradually move forward when the excecution of the job is delayed by one 
or more units of the frequency type.

Example: Job is set up to start at 2017-01-01 00:00:00 and run every ten 
minutes. One month later due to some circumstances the job starts at 
2017-02-01 00:01:01 which results in the next execution to be scheduled at 
2017-02-01 01:11:00 in stead of 2017-02-01 01:10:00.

The reason behind this behaviour is the TemporalExpressions.Frequency#prepareCal 
function. It has the purpose to jump from the first starting time to the latest 
possible execution of the job. But instead it just sets it to the current time 
(with the precision of the chosen frequency type) and calculates the next 
execution time from this point.

Thanks: Tobias Laufkötter for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1796047 13f79535-47bb-0310-9956-ffa450edef68
2017-05-24 12:26:48 +00:00
..
2017-05-09 08:11:55 +00:00
2017-05-21 13:57:59 +00:00