ConsumersRunner
Magento\MessageQueue\Model\Cron\ConsumersRunner
What it does
This class manages the automatic execution of message queue consumers via cron jobs in Magento 2.
Developers rely on this to ensure that asynchronous tasks like inventory updates, order processing, and email notifications are continuously processed in the background without manual intervention.
It handles spawning consumer processes, managing locks to prevent duplicates, and checking if messages are available before starting consumers.
Public Methods
- run()