@Override
    public void afterJob(JobExecution jobExecution) {
        if (!jobExecution.getExitStatus().equals(ExitStatus.COMPLETED)) {
            for (Throwable throwable : jobExecution.getAllFailureExceptions()) {
                logger.error("job fail. exception message : " , throwable);
            }

            jobFailMessageSender.sendSMS(jobExecution);
            jobFailMessageSender.sendEmail(jobExecution);
        }
    }
@author minwoo.jung<minwoo.jung@navercorp.com>
batch/src/main/java/com/navercorp/pinpoint/batch/common/JobFailListener.java