-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Pending, in queue" message remain even after bulk action - update of product attributes is done #29797
Comments
Hi @MrPotatox. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. Please, add a comment to assign the issue:
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento I am working on it |
Having same issue with 2.4.0, upgraded from 2.3.5-p1 to 2.3.5-p2 then to 2.4.0. It's really annoying, hoping this can be fixed asap. |
Having the same issue with 2.4.0, upgraded from 2.3.5 to 2.4.0, Thankfully, I took back up before upgrade to 2.4.0, Restored back to 2.3.5 Looking forward to any temporary fix for this issue. Thanks |
I am having this same problem with 3 different servers running M 2.4.0. CE All have stuck tasks that used to process in minutes sitting in the bulk task grid and notices for weeks. Using rabbitmq for message broker. So is someone working on this issue @VladimirZaets ? I can't see how anyone on M 2.4.0 is not having this problem. I would be happy even with a temporary fix if anyone has any ideas on this. How could M 2.4.0 even have been released with such a bad bug?? Thanks in advance if anyone can help. |
To add further info for us it is various consumers and tasks getting stuck and not just the mass product attribute updates. For us we have 50-100 tasks involving Nosto extension and their product updates that are done via cron jobs: Task "Sync 1500 Nosto products": 15 item(s) have been scheduled for update. These seem to complete too because I have seen the number of tasks from 50-165 just for this Nosto task. So because the number goes up and down I have to think some of these are processing but then they are not updating status in the grid. I never see any of them "completed" like I used to see in previous Magento versions where I would dismiss the completed task notices. I have never had no unfinished tasks where the tasks are completed fairly fast and none show pending like is the case for 90% of the time in previous Magento versions (you see nothing pending for tasks in bulk actions grid). I am curious @codemastering and @jackrevate are you guys using mysql or rabbitmq messaging and are you on Cloud Commerce or CE? |
Hi, I am using mysql and CE (2.4) and having the exact same issue. For me all the updates were completed (I changed price on 10 products only). But the system messages are stuck. I don't know if it is helpful or not, but my queue_message table has the following contents: |
@TonMarton I think the more people that post this problem the better chance we have of Magento fixing it. But its appearing to be a widespread problem. |
The more I look at this the more it appears that the bulk jobs are not actually stuck but are actually done and complete but the notice of completion is not getting back to the bulk task grid and therefore it never updates all these "pendings" to "completes". So it seems to be a communication issue to tell the bulk task notices that they are complete. You never see any bulk tasks listed as "complete" in M 2.4.0 like i used to see in M 2.3.5. Then I would click the "Dismiss all the completed tasks" link. It never gets to this state to dismiss any of them as the tasks are not updating that they are complete. So that is what the problem is as I see it. If anyone from team Magento feels I need to rather start a new post or topic on this I can since what I am experiencing is not exactly the same as the OP. Just let me know. |
100% agreed with @perfpcs i am facing same issue with Magento 2.4 anyone, please provide the fix for this. |
Also seeing this issue in Magento 2.4, job has been carried out but notification is still being displayed as "Pending, in queue..." |
@VladimirZaets ..any update to this issue since it appears to be widespead Magento bug? |
Hi @engcom-Oscar. Thank you for working on this issue.
|
✅ Confirmed by @engcom-Oscar Issue Available: @engcom-Oscar, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
I cleared all the messages. And when the new showed up i tried to dismiss them. Operation clears/acknowledges them in database (if you refresh the page they are gone), but the ui returns "Attention Something went wrong". It looks like the problem is with AJAX call? /admin_xxxxxx/bulk/notification/dismiss/key/39e1eb81366237663820b4026c18b2a14d0e433c039549b46f4da305e2ea7d22/?isAjax=true It returns an empty response - no errors in system.log |
I found solution - the problem was JSON response in Dismiss.php action - I fixed it modifying the file as follows:
|
After update, Magento 2.3.4 to Magento 2.4 and I was facing this issue. |
How can we apply this fix? |
@bibz0r for Magento 2.4.x in
to
then Old jobs might well still be stuck but new jobs should complete. |
The problem still exists even on Magento 2.4.1 with PHP 7.4 The cron is running so far, even starting it via SSH did not help. Mentioned fix does not solve the problem: https://github.com/magento/magento2/pull/29814/files |
The fix works as the bulk actions get executed via cron. But the message queue in magento_bulk does not get cleared. |
Are you able to solve it because I am also getting in 2.3.5 ? |
This problem also arises in Magento 2.3.5 Cron is working fine I cross-check with indexing and when run this command - |
@magecoders |
For me, this solved this issue on 2.4.1. Existing "stuck" jobs I had manually removed from the database..but all "new bulk changes" after fix run without any problems. |
In my case it seems like there were problems with the cron after the update of magento. After reinstall the cron |
I have this issue with Magento 2.4.2 Enterprise. I also tested with a fresh magento. |
@magento give me 2.4-develop instance |
Hi @Eddcapone. Thank you for your request. I'm working on Magento instance for you. |
Hi @Eddcapone, here is your Magento Instance: https://4ac6ac9a19ad3ca16429aeb14bf67949-2-4-develop.instances.magento-community.engineering |
I updated the weight attribute of some products, lets keep an eye to it: UPDATE: It finished successfully on the develop instance. Why does it not work on a fresh magento 2.4.2 enterprise then, even not after calling |
I figured out that the jobs are suddenly running successfully if you execute |
Applied this patch #29814 on magento cloud 2.4.0-p1 It's actually nothing was fixed |
Hi guys. I solved this problem editing the file env.php. I don't know why my magento had this parameters:
I removed this code and all catalog updates worked pretty. I hope it helps somebody |
Worked for me, thx buddy |
I got the same issue today on 2.4.2, removed the jobs from DB - table bulk back to normal, not sure what happen on it but I think probably about the cron jobs incorrectly, also catalog price rule cron job issue once applied. |
php bin/magento queue:consumer:start product_action_attribute.update |
M2.4.6-p3 This worked for me. I had queued messages in RabbitMQ that were stuck after doing bulk product updates. |
After attempting to update product attributes in bulk I have a "stuck" system message of
[Task "Update attributes for 679 selected products": 0 item(s) have been scheduled for update.]
This has been in "Pending, in queue" status for about 2 weeks now.
Preconditions
Magento ver. 2.3.5-p2, 2.4-develop
Using Magento Cloud Commerce (Valid for Magento Open Source as well)
Steps to reproduce
Expected result
After all product attributes changed to the desired value, bulk action message should inform about task complete
Actual result
Bulk actions / system message still displaying at top of page.
The text was updated successfully, but these errors were encountered: