mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
fix: the problem of incorrect sub-workflow state
This commit is contained in:
parent
9c30e5ee83
commit
d4eb8e3303
@ -238,12 +238,10 @@ public class WorkflowInstanceManager {
|
|||||||
}
|
}
|
||||||
if (readyNodes.isEmpty()) {
|
if (readyNodes.isEmpty()) {
|
||||||
// 没有就绪的节点(所有节点都被禁用)
|
// 没有就绪的节点(所有节点都被禁用)
|
||||||
wfInstanceInfo.setStatus(WorkflowInstanceStatus.SUCCEED.getV());
|
|
||||||
wfInstanceInfo.setResult(SystemInstanceResult.NO_ENABLED_NODES);
|
|
||||||
wfInstanceInfo.setFinishedTime(System.currentTimeMillis());
|
wfInstanceInfo.setFinishedTime(System.currentTimeMillis());
|
||||||
wfInstanceInfo.setDag(JSON.toJSONString(dag));
|
wfInstanceInfo.setDag(JSON.toJSONString(dag));
|
||||||
log.warn("[Workflow-{}|{}] workflowInstance({}) needn't running ", wfInfo.getId(), wfInstanceId, wfInstanceInfo);
|
log.warn("[Workflow-{}|{}] workflowInstance({}) needn't running ", wfInfo.getId(), wfInstanceId, wfInstanceInfo);
|
||||||
workflowInstanceInfoRepository.saveAndFlush(wfInstanceInfo);
|
handleWfInstanceFinalStatus(wfInstanceInfo, SystemInstanceResult.NO_ENABLED_NODES, WorkflowInstanceStatus.SUCCEED);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// 需要更新工作流实例状态
|
// 需要更新工作流实例状态
|
||||||
|
Loading…
x
Reference in New Issue
Block a user