Laravel jobs queue deadlocks with multiple queue daemons
<p>We have a Laravel 5.2 job queue that frequently fails jobs due to this error:</p>

<pre><code>SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction
</code></pre>

<p>We have multiple workers which access the jobs table because some of the jobs are pretty heavy. I have seen similar posts on SO about this issue but I have yet to see a good practical solution. </p>

<p>Is there an effective way to avoid deadlocks with the Laravel jobs table? </p>