Description
What happened?
Description
I have been receiving the following Deadlock error quite frequently when Craft executes the "Generating catalog pricing" job. My feeling is that since it started, it has become more recent, but I have not been able to find any logic that indicates that it happened for any specific reason.
SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction The SQL being executed was: INSERT INTO
commerce_catalogpricing (
price,
purchasableId,
storeId,
uid,
dateCreated,
dateUpdated) SELECT
basePrice,
purchasableId,
storeId, UUID(), NOW(), NOW() FROM
commerce_purchasables_storesWHERE
purchasableId IN (20168)
Is this a known bug? Is there anything I can do to reduce its occurrence?
Craft CMS version
5.6.17
Craft Commerce version
5.3.9
PHP version
8.3.8
Operating system and version
Linux 6.8.0-1021-aws
Database type and version
Mysql 8.0.32
Image driver and version
No response