开发者

remove quartz trigger that will not run again

Does the quartz scheduler r开发者_如何学编程emove the triggers that won't run again or we should remove them ourselves by using the RemoveTrigger method. I want to run a job at an instance of time but after execution that job won't run again.


Yes, by default Quartz will remove triggers that are complete (will not fire again). You do not need to remove them manually unless you've set up a trigger that will never expire, like a CronTrigger, for example.


If you scheduled your job using a SimpleTrigger, then you don't need to remove it manually.

If you want to check it by yourself, the way is to configure Quartz to use a database store, so that you can run a query against the triggers table.

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜