cancel
Showing results for 
Search instead for 
Did you mean: 

Task "Update attributes for 1 selected products": 0 item(s) have been scheduled for update.

Task "Update attributes for 1 selected products": 0 item(s) have been scheduled for update.

hi to all

when i'm trying to Update attributes,  Message is added to queue and a massage appear on top (Task "Update attributes for 1 selected products": 0 item(s) have been scheduled for update. )

what happening? What can i do?

 

 

image here

10 REPLIES 10

Re: Task "Update attributes for 1 selected products": 0 item(s) have been scheduled for up

Hi @freris 

 

Please run below command on your server:

 

php bin/magento cron:run

It may help you!
Problem Solved ? Please click on 'Kudos' & Accept as Solution!

Re: Task "Update attributes for 1 selected products": 0 item(s) have been scheduled for up

Hello @freris 

 

Please check my answer here, I have given solution for it :

 

https://community.magento.com/t5/Magento-2-x-Technical-Issues/Attributes-stuck-in-pending-update/m-p...

Problem Solved ? Click on 'Kudos' & Accept as Solution to encourage to write more answers !

Re: Task "Update attributes for 1 selected products": 0 item(s) have been scheduled for up

thanks for your reply! 

I have already done this with no result! what concerns me is what it says  0 item(s) and it stuck there. In magento 1 when i Update any attribute it was run immediately...

Re: Task "Update attributes for 1 selected products": 0 item(s) have been scheduled for up

@freris 

 

Please check magento_bulk table, if it has data, truncate it.

and bulk update add process of updating in queue for cron so we don't need to wait it to complete.

Problem Solved ? Click on 'Kudos' & Accept as Solution to encourage to write more answers !

Re: Task "Update attributes for 1 selected products": 0 item(s) have been scheduled for up

when i try to truncate the magento_bulk table appear this mesage : 

 

1701 - Cannot truncate a table referenced in a foreign key constraint (`m12********_*********020`.`magento_acknowledged_bulk`, CONSTRAINT

 

I delete the data, try again to update but the same happening....

 

any idea?

Re: Task "Update attributes for 1 selected products": 0 item(s) have been scheduled for up

truncate magento_acknowledged_bulk as well.

and make sure you have already cron installed in your system, you can check by command :

crontab -e

and then run :

php bin/magento cron:install

and then update data.

Problem Solved ? Click on 'Kudos' & Accept as Solution to encourage to write more answers !

Re: Task "Update attributes for 1 selected products": 0 item(s) have been scheduled for up

this is the answere in crontab -e


#~ MAGENTO START 9d88795d8763791167e0b1017a657af667f4ff1911d03de5415524de420e6ca6
* * * * * /opt/plesk/php/7.3/bin/php /var/www/vhosts/22127339851.thesite.link/topelectric.gr/bin/magento cron:run 2>&1 | grep -v "Ran jobs by schedule" >> /var/www/vhosts/22127339851.thesite.link/topelectric.gr/var/log/magento.cron.log
* * * * * /opt/plesk/php/7.3/bin/php /var/www/vhosts/22127339851.thesite.link/topelectric.gr/update/cron.php >> /var/www/vhosts/22127339851.thesite.link/topelectric.gr/var/log/update.cron.log
* * * * * /opt/plesk/php/7.3/bin/php /var/www/vhosts/22127339851.thesite.link/topelectric.gr/bin/magento setup:cron:run >> /var/www/vhosts/22127339851.thesite.link/topelectric.gr/var/log/setup.cron.log
#~ MAGENTO END 9d88795d8763791167e0b1017a657af667f4ff1911d03de5415524de420e6ca6

 

after i run 

php bin/magento cron:install

 but when i trying update an attribute 

Update attributes for 1 selected products
Not Started

Re: Task "Update attributes for 1 selected products": 0 item(s) have been scheduled for up

@freris ,

its queue consumers 

you can check consumers by

php bin/magento queue:consumers:list 

and to run the queue you must run 

php bin/magento queue:consumers:start 

 

this will solve your issue. 

 

 

Re: Task "Update attributes for 1 selected products": 0 item(s) have been scheduled for up

when i run 

php bin/magento queue:consumers:list 

the answer is :

-bash-4.2$ php bin/magento queue:consumers:list
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 i run 

php bin/magento queue:consumers:start 

 and i take this: 

 

Not enough arguments (missing: "consumer").


queue:consumers:start [--max-messages MAX-MESSAGES] [--batch-size BATCH-SIZE] [--area-code AREA-CODE] [--single-thread] [--pid-file-path PID-FILE-PATH] [--] <consumer>

 

thanks amitsamsukha