Quartz Java resuming a job executes it many times

后端 未结 3 1959
谎友^
谎友^ 2020-12-04 11:52

For my application I create jobs and schedule them with CronTriggers. Each job has only one trigger and both the job name and the trigger names are the same. No jobs share a

3条回答
  •  心在旅途
    2020-12-04 12:12

    If you pause the job, the trigger will continue to fire, but the executions will queue up until the job is resumed. This isn't a misfiring trigger, so that setting will have no effect.

    What you want to do, I think, is programmatically disable or remove the cron trigger, rather than pausing the job. When you want to resume, then re-add the trigger.

提交回复
热议问题