System cron is failing due to deadlock issue

Created on 17 March 2025, 23 days ago

We have observed that occasionally, the system cron fails due to a deadlock issue, and the problem gets resolved after manually running the cron again.

Error : Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction: DELETE FROM "queue" WHERE ("created" < :db_condition_placeholder_0) AND ("name" LIKE :db_condition_placeholder_1
ESCAPE '\\'); Array ( [:db_condition_placeholder_0] => 1741071602 [:db_condition_placeholder_1] => drupal_batch:% ) in
Drupal\Core\Queue\DatabaseQueue->garbageCollection() (line 246 of
/var/www/html/eps-m8/web/core/lib/Drupal/Core/Queue/DatabaseQueue.php).

Drupal version : 9.5.8

🐛 Bug report
Status

Active

Version

9.5

Component

cron system

Created by

🇮🇳India pratikshad Mumbai

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024