Is the sole factor in Quartz determining if a job is successful is if the job's Execute() method completes without having thrown a JobExecutionException?
This is the assumption I've been working under; so if I wire up a listener to my job and the jobException parameter == null in JobWasExecuted(...) then I am assuming Quartz considers that job to be successful.
I am asking because I have seen others check the TriggerState from within JobWasExecuted(...) and if it is TriggerState.COMPLETE, they appear to be considering the job successful. But that is just checking the state of the trigger itself, not the job, correct? If that is the case, does a TriggerState of COMPLETE simply mean that the trigger has fired?
So two things I am looking to confirm:
- Lack of a thrown JobExecutionException inside a job's Execute method (and hence null in the listener) means (to Quartz) that the job completed successfully
and
- TriggerState is not an indicator of job completion success