Model
WorkingStateProvider
Magento\Indexer\Model\WorkingStateProvider
What it does
This class checks whether an indexer is currently running or processing data.
Developers use this to determine if an indexer is actively working before triggering operations, preventing conflicts or determining if they need to wait for completion.
It loads the indexer's state from the database and compares it against the 'working' status.
Public Methods
- isWorking()