Log in
Interface

DeadlockRetrierInterface

Magento\Cron\Model\DeadlockRetrierInterface

What it does

This interface defines a mechanism for automatically retrying operations that fail due to database deadlocks.

Developers use this when executing database operations in cron jobs that might encounter deadlock exceptions, allowing the system to automatically retry up to 5 times before failing.

It's particularly useful for handling concurrent cron job executions that modify the same database records.

Public Methods

  • execute()