开发者

Quartz.NET - how to detect whether a job is paused?

开发者 https://www.devze.com 2023-01-22 10:14 出处:网络
I\'m usin开发者_如何学Pythong Quartz.NET in a Windows Service I am creating, and I\'d like a way to iterate over all jobs to detect whether it is paused or not. How do I check if a job is paused? I ca

I'm usin开发者_如何学Pythong Quartz.NET in a Windows Service I am creating, and I'd like a way to iterate over all jobs to detect whether it is paused or not. How do I check if a job is paused? I can't find a suitable method in the JobDetail class.

Thanks


I think you check the trigger not the job itself.

if (scheduler.GetTriggerState(triggerName, triggerGroup) == TriggerState.Paused)
{
    //paused
}
0

精彩评论

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