Closed
Description
Summary
We are using Magento 2.2.5 and we are consistently receiving Cron Job Error. Sqlstate[40001]: Serialization failure: 1213 Deadlock.
Preconditions
- Magento 2.2.5
- PHP 7.1.13
Steps to Reproduce
- Setup cron job at server
Expected Result
- Cron Job Run Should be successfully
- No more pending jobs
Actual Result
[Magento\Framework\DB\Adapter\DeadlockException]
SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction, query was: DELETE FROM cron_schedule
WHERE (status = 'missed') AND (job_code in ('indexer_reindex_all_invalid', 'indexer_update_all_views', 'indexer_clean_all_changelogs')) AND (created_at < '2018-09-28 18:32:28')