# Deadlock found when complete task (flowable 6.5, mysql 5.6)

**URL:** https://forum.flowable.org/t/deadlock-found-when-complete-task-flowable-6-5-mysql-5-6/6248
**Category:** Flowable Engine
**Created:** [June 19, 2020, 8:19am UTC](https://forum.flowable.org/t/deadlock-found-when-complete-task-flowable-6-5-mysql-5-6/6248 "2020-06-19T08:19:11Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![tjmac](https://avatars.discourse-cdn.com/v4/letter/t/bc8723/32.png) [@tjmac](https://forum.flowable.org/u/tjmac)
#### Post date: [June 19, 2020, 12:26pm UTC](https://forum.flowable.org/t/deadlock-found-when-complete-task-flowable-6-5-mysql-5-6/6248/2 "2020-06-19T12:26:07Z")

</div>

I just had a similar issue with Flowable and Sql Server. Maybe different issue but this post links to Camunda and that fixed deadlock issues with SQL Server.

> [@MS Sqlserver deadlock thrown on finding process instances](https://forum.flowable.org/t/ms-sqlserver-deadlock-thrown-on-finding-process-instances/508):
>
> Hi, oh no - those deadlocks - oh no - damned you, microsoft ! Anyone with some experiences on deadlocks on SELECT statements with Microsoft SqlServer? Admittedly, we are a bit behind: Still using activiti 5.21 ; and we are not even using the new ASyncExecutor introduced in 5.17 (which is described as being more database friendly) Symptoms: We have occasional deadlock exceptions on the org.activiti.engine.impl.persistence.entity.ExecutionEntityManager.findProcessInstanceAndVariablesByQueryCr…

---

_[View the full topic](https://forum.flowable.org/t/deadlock-found-when-complete-task-flowable-6-5-mysql-5-6/6248)._
