Is there a way to determine if a specific Trigger in Quartz is in paused state?
I know of the getPausedTriggerGroups() method on Scheduler, but there doesn’t seem to be a way to figure out the paused state of a particular Trigger for a particular JobDetail.
Any friendly suggestions?
According to the API docs, Scheduler.getTriggerState(String triggerName, String triggerGroup) can tell you the state of a particular trigger, returning one of these constants:
Trigger.STATE_NORMAL, Trigger.STATE_PAUSED, Trigger.STATE_COMPLETE, Trigger.STATE_ERROR, Trigger.STATE_BLOCKED, Trigger.STATE_NONE
But, yeah, that’s not entirely intuitive. 🙂