fix - 处理XXL——JOB 定时任务的逻辑处理
This commit is contained in:
parent
7d75eccfc2
commit
d14696f8d6
@ -69,16 +69,16 @@ public class NodeAlterJobHandler extends IJobHandler {
|
||||
jobs.forEach(e -> {
|
||||
XxlJobHelper.log("start execution of job: {}", JSON.toJSONString(e));
|
||||
ProcessInstance processInstance = runtimeService.createProcessInstanceQuery().processInstanceId(e.getProcessInstanceId()).singleResult();
|
||||
if (Objects.isNull(processInstance)) {
|
||||
executedJobs.add(e);
|
||||
return;
|
||||
}
|
||||
if (!refreshProperties.getAlterAllDefinitionKey()) {
|
||||
if (!ListUtils.emptyIfNull(refreshProperties.getAlterDefinitionKeys()).contains(processInstance.getProcessDefinitionKey())) {
|
||||
XxlJobHelper.log("skip alter by config");
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (Objects.isNull(processInstance)) {
|
||||
executedJobs.add(e);
|
||||
return;
|
||||
}
|
||||
List<Task> tasks = taskService.createTaskQuery()
|
||||
.processInstanceId(e.getProcessInstanceId())
|
||||
.taskDefinitionKey(e.getActivityId())
|
||||
|
||||
Loading…
Reference in New Issue
Block a user