What runs through the queue
With RabbitMQ or with the database queue that Magento uses when no broker is configured, these consumers come up most often in checkout-related problems:
| Consumer | What it handles | When it stops |
|---|---|---|
inventory.reservations.updateSalabilityStatus | Updates salable status after orders reserve stock (MSI) | Products show the wrong availability |
inventory.mass.update | Mass source and stock changes from the admin | Stock edits never apply |
product_action_attribute.update | Update attributes on many products at once | Prices or status changes hang |
async.operations.all | Bulk and asynchronous REST API calls | Integrations look successful, nothing changes |
exportProcessor | Admin data exports | Exports never finish |
List the consumers your installation actually has:
bin/magento queue:consumers:listHow consumers get started
By default the cron job consumers_runner starts consumers every minute, each for a limited number of messages. The settings live in app/etc/env.php:
'cron_consumers_runner' => [
'cron_run' => true, // let cron start consumers
'max_messages' => 10000, // a consumer exits after this many
'consumers' => [], // empty = all consumers
],bin/magento cache:flush.So the first rule follows: if cron is down, consumers started by cron are down too. Check Magento cron before anything else.
Some hosts turn cron consumers off to save memory and never start them another way. Messages pile up quietly until someone notices that a mass update never applied.
Is the queue backing up?
On the database queue, count messages per status. A growing number of new or retry rows means nobody is consuming:
SELECT q.name AS queue, s.status, COUNT(*) AS messages
FROM queue_message_status s
JOIN queue q ON q.id = s.queue_id
GROUP BY q.name, s.status
ORDER BY messages DESC;
-- status: 2 new, 3 in progress, 4 complete, 5 retry, 6 errorOn RabbitMQ, ask the broker. The messages column should drain towards zero, and consumers should not be 0 on a queue that receives work:
rabbitmqctl list_queues name messages consumersRun them properly in production
Cron-started consumers are fine for small stores. Larger stores run the important consumers as long-lived processes under a supervisor, so they restart on failure and do not wait for the next cron minute:
; /etc/supervisor/conf.d/magento-consumers.conf
[program:magento-reservations]
command=php /var/www/magento/bin/magento queue:consumers:start inventory.reservations.updateSalabilityStatus --max-messages=1000
user=magento
autorestart=true
stopwaitsecs=60--max-messages makes the process exit after a batch; the supervisor starts a fresh one, which also releases memory.- Pick the consumers. Run the ones tied to stock and orders as services; leave the rest to cron.
- Remove them from cron. List the remaining ones in
consumersin env.php, so the same consumer is not started twice. - Restart after each deploy. Consumers keep the old code in memory until they restart.
A long-running consumer that started before the deploy still runs the old classes. Add supervisorctl restart magento-reservations to the deploy script.
Watch it
Alert on the queue size, not only on whether a process exists: a consumer can run and still fail every message. The free MageSentinel Magento module checks cron, indexers and pending payments every 15 minutes; an end-to-end checkout check shows the result when stock or prices go wrong. Related: MSI salable quantity and Redis sessions and cache.
Check your own store now with the free Magento checkout test: it walks the checkout in a real browser and shows the step where it stops.
Find out your checkout broke before your customers do.
Real checkout checks for Magento and WooCommerce · free plan · no card requiredMagento checkout monitoring →