flowable / flowable/flowable-engine

Deadlock found when trying to get lock; try restarting transaction #3866

Open
#4,016 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
7h 8m
Merged PRs (30d)
2

Description

**Describe the bug**

![Image](https://github.com/user-attachments/assets/f5880499-c668-4dd2-8a7c-c94c3f0f37e4)

**Expected behavior**
succeed

**Code**
public List execBatchCompleteTask(List approveProcessVos) {
List result = new ArrayList<>();
approveProcessVos.forEach(vo -> {
String actTaskId = vo.getActTaskId();
Map variables = vo.getVariables();
taskService.complete(actTaskId, variables);
result.add(new ProcessAdvanceRespondVo(vo.getProcessId(), vo.getProcessInstanceId()));
});
queryNewestTask(result);
return result;
}

**Additional context**
Add the version of Flowable that you are using, the database vendor and if you are using Flowable within Spring Boot, the Flowable Task application etc.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.