Model
IndexMutex
Magento\Indexer\Model\IndexMutex
What it does
This class prevents race conditions when multiple indexers try to access the same index table simultaneously.
It uses a locking mechanism to ensure only one indexer can execute at a time, either per indexer or for indexers sharing the same index table.
Developers use this when implementing custom indexers that need to safely modify shared index data without conflicts.
Public Methods
- execute()