.net - Quartz.Net scheduler - What specifically indicates successful job completion? -
is sole factor in quartz determining if job successful if job's execute() method completes without having thrown jobexecutionexception?
this assumption i've been working under; if wire listener job , jobexception parameter == null in jobwasexecuted(...) assuming quartz considers job successful.
i asking because have seen others check triggerstate within jobwasexecuted(...) , if triggerstate.complete, appear considering job successful. checking state of trigger itself, not job, correct? if case, triggerstate of complete mean trigger has fired?
so 2 things looking confirm:
- lack of thrown jobexecutionexception inside job's execute method (and hence null in listener) means (to quartz) job completed successfully
and
- triggerstate not indicator of job completion success
what job being successful depend on how write job. example, have job each of our clients. it's designed continue if there exception or issue while doing work 1 client. in other cases, might want job fail unit. so, depends on how write job. however, jobwasexecuted called on job listener when job has finished executing. determine success or failure means. if wrote job throw exception if unsuccessful, answer 1 yes.
trigger state not indicator of whether job completed successfully, above reasons.
Comments
Post a Comment