quartz-scheduler / quartz

Code for Quartz Scheduler
http://www.quartz-scheduler.org
Apache License 2.0
6.31k stars 1.94k forks source link

Do not consider a job as misfire when it is resumed after the server was in stand by mode #1117

Open pablovb opened 7 months ago

pablovb commented 7 months ago

When the server is in standby (after calling standby()), if you create new jobs with triggers during that mode, when you "wake up" scheduler by calling scheduler.start(), all triggers that should have been executed during that period appear as misfired.

There should be an option (properties or method) to avoid these misfires.

A tipical use case is to:

Thanks.

jhouserizer commented 1 month ago

The typical way people do this is to set the start time into the future; but this could be considered as an enhancement feature.

pablovb commented 1 month ago

Hi Jhouserizer,

Yes, that could be a workaround as long as the feature is not implemented. It's still not perfect, because the future start time would have to be an arbitrary time (you don't know how long the import process will take), so it could be too long or the opposite.

Regards.