代码更新
This commit is contained in:
@@ -33,8 +33,6 @@ import org.nl.utils.SpringContextHolder;
|
||||
import org.nl.utils.ThrowableUtil;
|
||||
import org.quartz.DisallowConcurrentExecution;
|
||||
import org.quartz.JobExecutionContext;
|
||||
import org.slf4j.Marker;
|
||||
import org.slf4j.MarkerFactory;
|
||||
import org.springframework.scheduling.annotation.Async;
|
||||
import org.springframework.scheduling.quartz.QuartzJobBean;
|
||||
|
||||
@@ -62,9 +60,6 @@ public class ExecutionJob extends QuartzJobBean {
|
||||
*/
|
||||
private final static ThreadPoolExecutor EXECUTOR = ThreadPoolExecutorUtil.getPoll();
|
||||
|
||||
private static final Marker QUARTZ_MARKER = MarkerFactory.getMarker("quartz");
|
||||
|
||||
|
||||
@Override
|
||||
public void executeInternal(JobExecutionContext context) {
|
||||
QuartzJob quartzJob = (QuartzJob) context.getMergedJobDataMap().get(QuartzJob.JOB_KEY);
|
||||
@@ -129,9 +124,9 @@ public class ExecutionJob extends QuartzJobBean {
|
||||
// EmailVo emailVo = taskAlarm(quartzJob, ThrowableUtil.getStackTrace(e));
|
||||
// emailService.send(emailVo, emailService.find());
|
||||
}
|
||||
quartzLogRepository.save(logDto);
|
||||
} finally {
|
||||
log.info(QUARTZ_MARKER, logDto.toString());
|
||||
//quartzLogRepository.save(log);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user