How To

Solved: Export File gets “Message is added to queue, wait to get your file soon” in Magento 2.3.X

Hello Magento Friends ?,

Welcome to the Magento 2 Technical Blog series. Today I will resolve the issue when Export File gets “Message is added to queue, wait to get your file soon” in Magento 2.3.X. In our previous blog, I gave a solution to Show Double Thumbnail Image When Select Configurable Products in Magento 2. For now, let’s start ?

Before it happened that whenever the user exports any files from Magento 2, it goes into the queue. So the user has to wait for the file. The solution to this is to export files directly and not wait for the cron queue schedule. There are three ways to export files without waiting. Let us see all of them.

First Way: Using cron to execute every minute

Create a file in the below-given path

app\code\Vendor\Extension\etc\crontab.xml

Now, add the below code

<?xml version="1.0"?>
     <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd">
          <group id="default">
               <job name="consumers_runner" instance="Magento\MessageQueue\Model\Cron\ConsumersRunner" method="run">
                    <schedule>* * * * *</schedule>
               </job>
          </group>
     </config>

Second Way: View a list of available message queue consumers

To view a list of all consumers, execute the below command in terminal

bin/magento queue:consumers:list

The above command will give list as below :

product_action_attribute.update
product_action_attribute.website.update
exportProcessor
inventory.source.items.cleanup
inventory.mass.update
inventory.reservations.cleanup
inventory.reservations.update
codegeneratorProcessor
async.operations.all

After that, run command as given below

bin/magento cron:run
bin/magento queue:consumers:start codegeneratorProcessor

Third Way: Specific configuration

Edit the app\etc\env.php file with the below code

'cron_consumers_runner' => [
                        'cron_run' => true,
                        'max_messages' => 0,
                        'consumers' => [
                                    'async.operations.all',
                                    'codegeneratorProcessor',
                                    'exportProcessor',
                                    'product_action_attribute.update',
                                    'product_action_attribute.website.update'
                        ]
               ],

Conclusion:

Hence, with any of the above solutions, you can reduce the export file time. For any queries write to me in the comment section, I am solving there. Do share the solution via your social media and amongst your friends. Stay connected for further solutions and info.

Happy Solving ?

Click to rate this post!
[Total: 22 Average: 4]
Dhiren Vasoya

Dhiren Vasoya is a Director and Co-founder at MageComp, Passionate 🎖️ Certified Magento Developer👨‍💻. He has more than 9 years of experience in Magento Development and completed 850+ projects to solve the most important E-commerce challenges. He is fond❤️ of coding and if he is not busy developing then you can find him at the cricket ground, hitting boundaries.🏏

View Comments

Recent Posts

How to Integrate ChatGPT with Laravel Application?

In this guide, we'll explore how to integrate ChatGPT, an AI-powered chatbot, with a Laravel…

19 hours ago

What are Net Sales? How to Calculate Your Net Sales?

In the world of business, understanding financial metrics is crucial for making informed decisions and…

3 days ago

Magento 2 Extensions Digest April 2024 (New Release & Updates)

Welcome to the MageComp Monthly Digest, where we bring you the latest updates, releases, and…

3 days ago

The ABCs of Geofencing: Definition, Features and Uses

In this era, businesses are always on the lookout for ways to engage with their…

4 days ago

How to Delete Product Variant in a Shopify Remix App using GraphQL Mutations?

Managing a Shopify store efficiently involves keeping your product catalog organized. This includes removing outdated…

5 days ago

6 Innovative Tools Revolutionizing E-Commerce Operations

E-commerce has transformed the way consumers shop for products and services and interact with businesses.…

7 days ago