quartz-scheduler / quartz

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

Enhancement: Allow run dates in the past, either optionally or by default #1135

Open RichardBradley opened 3 months ago

RichardBradley commented 3 months ago

Currently, if Quartz is started with a Trigger date for a Job that is in the past, it will fail to start with the following error:

Based on configured schedule, the trigger X will never fire.

This is controlled by the following code:

This is a problem for apps which wish to schedule a one-off job in the future. If the app is restarted after the job time has passed (and cloud based apps are often frequently restarted), then the app will fail to start.

I think it would be helpful for many users of Quartz if this behaviour were either turned off by default (which would increase the risk of users accidentally scheduling a job that will never run), or made configurable.

See also https://github.com/quartz-scheduler/quartz/issues/621 , an earlier issue with the same request

lprimak commented 2 months ago

This project is abandoned. See #1134