Log in
Model

OrderMutex

Magento\Sales\Model\OrderMutex

What it does

This class prevents race conditions when multiple requests try to update the same order simultaneously.

It uses database row-level locking to ensure only one process can modify an order at a time.

Developers should use this when performing critical order operations that must be executed sequentially to maintain data integrity.

Public Methods

  • execute()