After a server issue, I am unable to bulk update product attributes on our Magento 2.4.6 site. The job remains stuck with the message Task "Update attributes for 4 selected products": 1 item(s) have been scheduled for update.
This is the cron job running on our Cloudways server:
#~ MAGENTO START c40b63b3eadd5cd6913308a6125243dcbe93fc5e6975955d41861ec32a66eeee */5 * * * * /usr/bin/php8.1 /<MAGENTO_ROOT>/public_html/bin/magento cron:run 2>&1 | grep -v "Ran jobs by schedule" >> /<MAGENTO_ROOT>/public_html/var/log/magento.cron.log #~ MAGENTO END c40b63b3eadd5cd6913308a6125243dcbe93fc5e6975955d41861ec32a66eeee
As bulk update is run by Magento consumers I have investigated this but got no-where. In app/etc/env.php I have the following:
'cron_consumers_runner' => [ 'cron_run' => true, 'max_messages' => 10000, 'consumers' => [ ]
and
'queue' => [ 'consumers_wait_for_messages' => 0 ] ];
Apparently 'consumers' can be left blank to run all consumers?
Running php bin/magento queue:consumers:start product_action_attribute.update does nothing, I get nothing pop up in the window. Cron must be working on the server as we are getting heartbeat messages via the Wyomind Cron add-on we have installed.
Can anyone advise how to get this working again please?
Solved! Go to Solution.
Hello @GTLTD
In Magento 2, you can specify which consumers to run by providing a comma-separated list of consumer names when running the bin/magento queue:consumers:start command.
If you leave the consumer names blank, all consumers will be started.
For example, if you want to start only the product_action_attribute.update and inventory.source.items.cleanup consumers, you can run the following command:
bin/magento queue:consumers:start product_action_attribute.update inventory.source.items.cleanup
If you want to start all consumers, you can simply leave the consumer names blank:
bin/magento queue:consumers:start
This will start all consumers defined in your Magento installation's queue_consumers.xml configuration file.
If you find our reply helpful, please give us kudos.
A Leading Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.
WebDesk Solution Support Team
Get a Free Quote | | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789
Thank You,
WebDesk Solution Support Team
Get a Free Quote | Email | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789
Location: 150 King St. W. Toronto, ON M5H 1J9
Hello @GTLTD
In Magento 2, you can specify which consumers to run by providing a comma-separated list of consumer names when running the bin/magento queue:consumers:start command.
If you leave the consumer names blank, all consumers will be started.
For example, if you want to start only the product_action_attribute.update and inventory.source.items.cleanup consumers, you can run the following command:
bin/magento queue:consumers:start product_action_attribute.update inventory.source.items.cleanup
If you want to start all consumers, you can simply leave the consumer names blank:
bin/magento queue:consumers:start
This will start all consumers defined in your Magento installation's queue_consumers.xml configuration file.
If you find our reply helpful, please give us kudos.
A Leading Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.
WebDesk Solution Support Team
Get a Free Quote | | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789
Thank You,
WebDesk Solution Support Team
Get a Free Quote | Email | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789
Location: 150 King St. W. Toronto, ON M5H 1J9