Author: nmalin
Date: Mon Jan 4 10:09:59 2016
New Revision: 1722821
URL:
http://svn.apache.org/viewvc?rev=1722821&view=revLog:
Backport from trunk. When ofbiz reload crashed jobs when it start, replay only one time the crashed jobs. Remove all temporal information to ensure that the new job don't create any reccurent schedule that duplicate the origin job's configuration, See OFBIZ-6784, thanks Scott to spot the good correction
Modified:
ofbiz/branches/release12.04/framework/service/src/org/ofbiz/service/job/JobManager.java
Modified: ofbiz/branches/release12.04/framework/service/src/org/ofbiz/service/job/JobManager.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release12.04/framework/service/src/org/ofbiz/service/job/JobManager.java?rev=1722821&r1=1722820&r2=1722821&view=diff==============================================================================
--- ofbiz/branches/release12.04/framework/service/src/org/ofbiz/service/job/JobManager.java (original)
+++ ofbiz/branches/release12.04/framework/service/src/org/ofbiz/service/job/JobManager.java Mon Jan 4 10:09:59 2016
@@ -224,6 +224,9 @@ public class JobManager {
newJob.set("parentJobId", pJobId);
newJob.set("startDateTime", null);
newJob.set("runByInstanceId", null);
+ //don't set a recurrent schedule on the new job, run it just one time
+ newJob.set("tempExprId", null);
+ newJob.set("recurrenceInfoId", null);
delegator.createSetNextSeqId(newJob);
// set the cancel time on the old job to the same as the re-schedule time