未验证 提交 e12a2628 编写于 作者: W wanghong1314 提交者: GitHub

【BUG-5328】 modify process contain depend task is always running (#5344)

Co-authored-by: Nwanghong1314 <wanghong1@onething.net>
上级 5f1fc462
......@@ -1264,7 +1264,8 @@ public class ProcessService {
List<TaskInstance> taskInstances = this.findValidTaskListByProcessId(taskInstance.getProcessInstanceId());
for (TaskInstance task : taskInstances) {
if (task.getState() == ExecutionStatus.FAILURE) {
if (task.getState() == ExecutionStatus.FAILURE
&& task.getRetryTimes() >= task.getMaxRetryTimes()) {
return false;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册