Remove the quartz trigger that will not start again

The quartz scheduler removes triggers that will not start again, or we must remove them ourselves using the RemoveTrigger method. I want to run the task at an instance of time, but after completion this work will not work again.

+4
source share
2 answers

Yes, by default, Quartz will remove triggers that are completed (will not start again). You do not need to delete them manually unless you configured a trigger that never expires, such as CronTrigger.

+3
source

If you plan your work using SimpleTrigger, you do not need to manually delete it.

If you want to test it yourself, you need to configure Quartz to use the database repository so that you can run a query on the trigger table.

http://www.quartz-scheduler.org/docs/configuration/ConfigJobStoreTX.html

+1
source

Source: https://habr.com/ru/post/1338806/


All Articles