wyona / yanel

http://www.yanel.org
Apache License 2.0
10 stars 5 forks source link

Scheduler trigger start dates which are older than the current date should be handled differently #43

Closed michaelwechner closed 11 years ago

michaelwechner commented 11 years ago

The class

src/impl/java/org/wyona/yanel/impl/scheduler/QuartzSchedulerUtil.java

is reading the startDate from a file named

/scheduler-jobs.xml

which is located by default at the Root of the realm repository.

If the startDate is older than the current date and the count is set to REPEAT_INDEFINITELY, then the next possible startDate should be passed to the Trigger implementation.

But if the count is not set to REPEAT_INDEFINITELY, then it should not start at all, except if there is repeat interval which is able to create a date younger than the current date.

michaelwechner commented 11 years ago

The following webpage should explain how Quartz is handling "misfire" instructions

http://www.javacodegeeks.com/2012/04/quartz-scheduler-misfire-instructions.html

michaelwechner commented 11 years ago

The above functionality is now implemented