svn commit: r1374588 - /ofbiz/trunk/framework/service/src/org/ofbiz/service/job/GenericServiceJob.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1374588 - /ofbiz/trunk/framework/service/src/org/ofbiz/service/job/GenericServiceJob.java

adrianc
Author: adrianc
Date: Sat Aug 18 14:28:13 2012
New Revision: 1374588

URL: http://svn.apache.org/viewvc?rev=1374588&view=rev
Log:
Small change to GenericServiceJob - restore job state in the deQueue method so client code can keep trying to submit the job.

Modified:
    ofbiz/trunk/framework/service/src/org/ofbiz/service/job/GenericServiceJob.java

Modified: ofbiz/trunk/framework/service/src/org/ofbiz/service/job/GenericServiceJob.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/src/org/ofbiz/service/job/GenericServiceJob.java?rev=1374588&r1=1374587&r2=1374588&view=diff
==============================================================================
--- ofbiz/trunk/framework/service/src/org/ofbiz/service/job/GenericServiceJob.java (original)
+++ ofbiz/trunk/framework/service/src/org/ofbiz/service/job/GenericServiceJob.java Sat Aug 18 14:28:13 2012
@@ -147,9 +147,7 @@ public class GenericServiceJob extends A
 
     @Override
     public void deQueue() throws InvalidJobException {
-        if (currentState != State.QUEUED) {
-            throw new InvalidJobException("Illegal state change");
-        }
+        super.deQueue();
         throw new InvalidJobException("Unable to queue job [" + getJobId() + "]");
     }
 }