Quartz Java resuming a job executes it many times

后端 未结 3 1958
谎友^
谎友^ 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:00

    Since 1.6.5 at least (the earliest version of quartz at my fingertips), the scheduler has a pauseTrigger method that takes the name/group as parameters. This means you don't have to have a sub-class of every trigger type you use, nor do you have to do funky deletion/insertion tricks.

    Both of these are important to me because 1) our database has a strict no-deletes policy and 2) the custom datastore I use doesn't support trigger sub-classes.

提交回复
热议问题