Configuring Quartz.Net to stop a job from executing, if it is taking longer than specified time span
问题 I am working on making a scheduler, just like Windows Scheduler using Quartz.Net. In Windows Scheduler, there is an option to stop a task from running if it takes more than the specified time. I have to implement the same in my scheduler. But I am not able to find any extension method/setting to configure Trigger or Job accordingly. I request some inputs or suggestions for it. 回答1: You can write small code to set a custom timout running on another thread. Implement IInterruptableJob interface