Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NieWeiChao opened this issue Jan 21, 2025 · 1 comment
Open

Comments

@NieWeiChao
Copy link

Describe the bug

Image

Expected behavior
succeed

Code
public List execBatchCompleteTask(List approveProcessVos) {
List result = new ArrayList<>();
approveProcessVos.forEach(vo -> {
String actTaskId = vo.getActTaskId();
Map<String, Object> 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.

@NieWeiChao
Copy link
Author

Sometimes it's this error
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant