delete trigger in quartz

百般思念 提交于 2019-11-29 02:26:58

问题


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.

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?

Thanks


回答1:


try scheduler.unscheduleJob

this accepts the trigger and group names as a parameters and will only remove the trigger specified, not the job.

QuartzScheduler

Scheduler

Forum



来源:https://stackoverflow.com/questions/1904064/delete-trigger-in-quartz

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!