CronTrigger support for overlapping executions #22937
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: declined
A suggestion or change that we don't feel we should currently apply
As mentioned in SPR-10556, overlapping executions won't occur.
But in my project, I have a scheduled task which has to run every hour (with cron expression 0 20 * * * ?) .In most case, it took 20 to 30 minutes. But sometimes, it took 2 to 3 hours due to force majeure. Though there is a way to solve it by submitting the task to a separate thread pool, it would be better if spring-context support overlapping executions.
For now, I solve it by the following codes:
The text was updated successfully, but these errors were encountered: