fix:(1.2.0-beta2): 1、修复MapReduce模式Reduce、MergeReduce阶段异常更新工作流上下文 2、去除工作流节点stop相关重复代码
This commit is contained in:
parent
399ed8298d
commit
7271eb8ee2
@ -123,4 +123,12 @@ public class MapReduceJobExecutorHandler extends AbstractJobExecutorResultHandle
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void openNextWorkflowNode(JobExecutorResultContext context) {
|
||||
if (context.isCreateReduceTask()){
|
||||
// 任务暂未完成,无需开启后续节点;更新上下文
|
||||
return;
|
||||
}
|
||||
super.openNextWorkflowNode(context);
|
||||
}
|
||||
}
|
||||
|
@ -52,14 +52,6 @@ public class WorkflowNodeServiceImpl implements WorkflowNodeService {
|
||||
jobHandler.stop(jobTaskBatch.getId());
|
||||
}
|
||||
|
||||
// 继续执行后续的任务
|
||||
WorkflowNodeTaskExecuteDTO taskExecuteDTO = new WorkflowNodeTaskExecuteDTO();
|
||||
taskExecuteDTO.setWorkflowTaskBatchId(workflowTaskBatchId);
|
||||
taskExecuteDTO.setTaskExecutorScene(JobTaskExecutorSceneEnum.MANUAL_WORKFLOW.getType());
|
||||
taskExecuteDTO.setParentId(nodeId);
|
||||
|
||||
workflowBatchHandler.openNextNode(taskExecuteDTO);
|
||||
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user