删除石英中的触发器 [英] delete trigger in quartz
问题描述
有没有办法删除特定作业的预定触发器?似乎删除触发器的唯一方法是删除整个作业,然后重新注册作业并触发。
Is there a way to delete a scheduled trigger with a specific job? It seems that only way to delete a trigger is to delete the whole job and then re-register the job and trigger.
我的工作可能有100个+触发器,我真的不想删除作业,并在我只需要删除1个触发器时重新注册所有触发器。
I've a job which can potentially have 100+ triggers and I really don't want to delete the job and re-register all the triggers when I just have to delete 1 trigger.
此外,有没有办法在配置触发器后立即停止调度程序执行作业?
Also, is there a way to stop the scheduler from executing the job as soon as the trigger is configured?
谢谢
推荐答案
尝试 scheduler.unscheduleJob
这会将触发器和组名称作为参数接受,并且只会删除指定的触发器,而不是作业。
this accepts the trigger and group names as a parameters and will only remove the trigger specified, not the job.
这篇关于删除石英中的触发器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!