Magento2 Mutexes
snowio/magento2-mutexes
Ensures only one product save process can run at a time for the same product SKU. Prevents data inconsistencies from concurrent product updates.
Build Tests
Code Quality
Tested on Magento 2.4.8-p3
Recent Test History
Each release is tested against the latest Magento version at that time.
Share This Module's Status
README
Loaded from GitHubMagento 2 Product Save Mutex
Description
Module that ensures mutual exclusion on product saves. The locking is applied on product skus thus 2 or more
simultaneous saves on a product will result in one of the simultaneous save calls successfully saving the product
and the rest failing with a RuntimeException.
Magento Versions
-
<= 2.3.xuse 2.x tags -
>= 2.4.xuse master
Prerequisites
- PHP 7.4 or newer
- Composer (https://getcomposer.org/download/).
-
magento/framework103 or newer -
magento/module-catalog104 or newer -
snowio/magento2-lock1.0.0 or newer
Installation
composer require snowio/magento2-product-save-mutex
php bin/magento module:enable SnowIO_ProductSaveMutex
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush
License
This software is licensed under the MIT License. View the license
This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.