{"id":1102,"date":"2020-07-06T05:49:59","date_gmt":"2020-07-06T05:49:59","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/2020\/07\/06\/magento-2-message-queue\/"},"modified":"2025-07-22T11:33:26","modified_gmt":"2025-07-22T06:03:26","slug":"magento-2-message-queue","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/magento-2-message-queue\/","title":{"rendered":"How to Process Message Queue in Magento 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">No one likes to wait \u23f3<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Not even Magento 2 store admins!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, while using mass actions in Magento 2 admin panel, they have to witness a message like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2020\/07\/How-to-Process-Message-Queue-in-Magento-2-Meetanshi-1024x486.png\" alt=\"Magento 2 admin panel\" class=\"wp-image-9519\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">As a store admin, you may have to change the products\u2019 prices on a mass scale, assign a product to a warehouse, update products\u2019 attribute values at a time, etc.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Such mass actions go to the queue and are performed turn-wise. It may take time to complete all the actions and you will have to wait.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But not always.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can&nbsp;<em><strong>process message queue in Magento 2<\/strong><\/em>&nbsp;to perform all the mass actions at a time. This will save you time and you can check the results instantly. All you have to do is run the below commands:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps to Process Message Queue in Magento 2<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>bin\/magento queue:consumers:list<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To view a list of all consumers:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>bin\/magento queue:consumers:start &lt;queue_name&gt;\n\npass queue_name for process the queue<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s it for Magento 2 message queue!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">No more waiting for the mass actions to complete in Magento 2.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Also, please share the post with Magento 2 store admins via social media.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>No one likes to wait \u23f3 Not even Magento 2 store admins! However, while using mass actions in Magento 2 admin panel, they have to&#8230;<\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-1102","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=1102"}],"version-history":[{"count":3,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1102\/revisions"}],"predecessor-version":[{"id":18880,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1102\/revisions\/18880"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=1102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=1102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=1102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}