You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by dr...@apache.org on 2011/09/18 13:08:34 UTC

svn commit: r1172250 - /tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/cron/PeriodicExecutorImpl.java

Author: drobiazko
Date: Sun Sep 18 11:08:34 2011
New Revision: 1172250

URL: http://svn.apache.org/viewvc?rev=1172250&view=rev
Log:
Passing the previous execution's time to Schedule#nextExecution instead of current millis.

Modified:
    tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/cron/PeriodicExecutorImpl.java

Modified: tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/cron/PeriodicExecutorImpl.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/cron/PeriodicExecutorImpl.java?rev=1172250&r1=1172249&r2=1172250&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/cron/PeriodicExecutorImpl.java (original)
+++ tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/cron/PeriodicExecutorImpl.java Sun Sep 18 11:08:34 2011
@@ -138,7 +138,7 @@ public class PeriodicExecutorImpl implem
             // here, such as basing the next execution on the actual start time, or event actual completion time, or allowing
             // overlapping executions of the Job on a more rigid schedule.  Use Quartz.
 
-            nextExecution = schedule.nextExecution(System.currentTimeMillis());
+            nextExecution = schedule.nextExecution(nextExecution);
 
             parallelExecutor.invoke(this);