So we were REALLY busy a few days ago and since then, even though our traffic is back to normal, I've been getting lots of these server errors in the logs. Any idea what I can do to fix this? It's not having any obvious effects.
UPDATE
------------
#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL query err...', 1213, '40001')
#1 src/XF/Db/Mysqli/Statement.php(78): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1213, '40001')
#2 src/XF/Db/AbstractAdapter.php(79): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(245): XF\Db\AbstractAdapter->query('UPDATE `xf_job...', Array)
#4 src/XF/Job/Manager.php(180): XF\Db\AbstractAdapter->update('xf_job', Array, 'job_id = ? AND ...', Array)
#5 src/XF/Job/Manager.php(76): XF\Job\Manager->runJobEntry(Array, 7.9992079734802)
#6 job.php(15): XF\Job\Manager->runQueue(false, 8)
#7 {main}
- XF\Db\DeadlockException: MySQL query error [1213]: Deadlock found when trying to get lock; try restarting transaction
- src/XF/Db/AbstractStatement.php:212
- Generated by: Unknown account
- Aug 11, 2019 at 10:52 AM
UPDATE
xf_job
SET trigger_date
= ?, last_run_date
= ? WHERE job_id = ? AND trigger_date = ?------------
#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL query err...', 1213, '40001')
#1 src/XF/Db/Mysqli/Statement.php(78): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1213, '40001')
#2 src/XF/Db/AbstractAdapter.php(79): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(245): XF\Db\AbstractAdapter->query('UPDATE `xf_job...', Array)
#4 src/XF/Job/Manager.php(180): XF\Db\AbstractAdapter->update('xf_job', Array, 'job_id = ? AND ...', Array)
#5 src/XF/Job/Manager.php(76): XF\Job\Manager->runJobEntry(Array, 7.9992079734802)
#6 job.php(15): XF\Job\Manager->runQueue(false, 8)
#7 {main}