Log in
Interface

OrderMutexInterface

Magento\Sales\Model\OrderMutexInterface

What it does

This interface defines a locking mechanism to prevent race conditions when multiple processes try to update the same order simultaneously.

Developers use this when implementing order modifications that must be executed atomically, ensuring that only one process can modify an order at a time.

The execute method wraps any order-related operation in a lock, preventing data corruption from concurrent updates.

Public Methods

  • execute()