Model
Schedule
Magento\Cron\Model\ResourceModel\Schedule
What it does
This resource model manages database operations for cron job schedules in Magento 2.
Developers use this class to atomically update cron schedule statuses, ensuring that only one process can execute a specific cron job at a time through database-level locking mechanisms.
It prevents race conditions when multiple cron processes attempt to run the same scheduled job simultaneously.
Public Methods
- _construct()
- trySetJobStatusAtomic()
- trySetJobUniqueStatusAtomic()