Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm using 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

like image 346
Chris Avatar asked Dec 12 '22 18:12

Chris


1 Answers

I think you check the trigger not the job itself.

if (scheduler.GetTriggerState(triggerName, triggerGroup) == TriggerState.Paused)
{
    //paused
}
like image 122
Paul U Avatar answered Dec 24 '22 15:12

Paul U