-
Notifications
You must be signed in to change notification settings - Fork 218
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
rocket_rucss_pending_jobs_cron flooding actionscheduler_actions #4940
Comments
Hello @jcatello and thank you for creating the issue. You can use the following filter to force Action Scheduler to remove its log more frequently:
The |
The permanent solution here would be to:
|
Hi guys... I don't know if this is the right place to ask this. I'm not a programmer, just a WP Rocket user... When accessing Scheduled Actions I saw a huge number of actions that keep growing... they are successfully completed, but they don't stop every minute... Along with that, I have another observation... When I upgrade from Version 3.10.9 to 3.11.0.4 , an alert exists with the following message: WP Rocket: We detected missing database table related to Action Scheduler. Please visit the following URL to recreate it, as it is needed for WP Rocket to work correctly. When I click on the LINK, I access the Scheduled Actions and see the giant number of actions. And it seems that nothing solves the alert... maybe because this queue is eternal. If I keep the plugin at the latest version 3.11.0.4.... after a few hours (maybe by the cache) I start to have 504 errors in several places... (both on the website and in the wp control panel) and from what I found it is an error caused by a problem in the database. The only thing I can guess is that the database issue is caused by this issue presented in the WP Rocket alert. To avoid errors on the site I went back to version 3.10.9. This makes the alert disappear and the site no longer displays the 504 error... but the list in Scheduled Actions continues infinite.... Sorry to say too much... but I tried to report exactly what is happening here.... |
@umviajante This alert is correct when Action Scheduler wasn't able to create its tables correctly. They should be recreated while accessing the mentioned link. If that's not happening, could you reach me directly at |
Likely related: https://secure.helpscout.net/conversation/1851006282/337894/ |
Looks like this is causing fatal errors now, upgrading to 3.11.05
|
You see fatal error in 3.11.0.5?
|
Correct, rolling back to 3.11.04 resolved it |
Could you send me WP/SFTP access to affected website? piotr [at] wp-media.me We can use https://onetimesecret.com for that. |
Sent |
I am a WP Rocket user and i did experience the wp_actionscheduler table growing quite fast in our DB. We currently have limits on our size of our DB at 1000mg by our host. I was sent a fix that was to be put in the functions.php of our child theme that would clear the table every 24hrs, however it still managed to exceed this in the 24hrs. Also due to this, our CPU usage has skyrocketed and we are going to be throttled as a result and limitations to our website are going to be implemented. I think this was prematurely rolled out and shared hosting was not taken into consideration prior to roll out. |
@basslion Our apologies for the troubles you're dealing with. Root cause is, unfortunately, not related to WP Rocket itself, but to the very popular 3rd-party, Action Scheduler: In 3.11.0.5 we made sure to improve a couple of scenarios related to AS, including the one mentioned in the issue. |
This issue still seems to be happening although not as bad, but for our site and hosting which is limited to 1000mb for DB, it is still causing problems. I see these rocket_rucss_job_check_status hooks repeating non stop https://prnt.sc/GB9GH-lfW3V2 Pages and pages of them, 2,900 pages of 100 lines to be exact as I type this comment. I have applied the update, however I still have the quick fix supplied by WP Rocket where I was to add a line of code to functions.php of our child theme. Should I remove the following because it may be conflicting with what the update is doing? add_filter( 'action_scheduler_retention_period', function( $seconds ){ HELP!!!!!! |
@basslion Please remove the mentioned filter and the number will start decreasing (you can also just remove those actions manually, which will be a faster solution). If you need any further help, please reach our support. |
Hi everyone. The problem is related to the "Removed unused CSS (beta)" option. I hope WP Rocket fixes it on the next release. |
I'm experiencing this issue as well. I am on the latest version of WP Rocket. I've even uninstalled WP Rocket, deactivated WooCommerce, and for some reason my Scheduled actions are still flooding with: rocket_rucss_pending_jobs_cron | Complete | Every 1 minute | 2022-06-24 17:13:18 +0000(7 minutes 42 seconds ago) | 2022-06-24 17:12:18 +0000 action created 2022-06-24 17:13:24 +0000 action started via WP Cron2022-06-24 17:13:24 +0000 action complete via WP Cron Any intermediate fixes for this? My DB grows huge very quickly. I first stumbled across this because my Host Kinsta said I had gone over the 10GB disk usage and I ended up looking at the MySQL DB and seeing the actionscheduler_actions and _logs tables were gigantic. |
Yeah it's a nightmare :( Do you have access to SSH / WP CLI: To collect some information, this will print out all current hooks and what status they are in.
You will most likely see something like..
We've just been clearing out all complete/failed tasks Clear out completed / failed tasks:
I would also truncate the logs table:
finish up with a DB optimize:
If you notice the database tables are still really large, sometimes an optimize doesn't fix it so you will want to dump the table, drop it, then import the table which will free up any unnecessary space. |
@jcatello @cspcreative thanks for posting. Have you already contacted our Support Team telling that the problem is still there? It should be fixed in the #4960 so checking why it still appears would be valueable. |
I'm having the same problem with the latest version |
Highly recommend getting in contact with WP Rocket support! |
Who faced this problem and managed to solve it? |
Just recreate the table manually is the fastest approach: |
|
Is this really a closed issue? I'm seeing "WP Rocket: We detected missing database table related to Action Scheduler. Please visit the following URLto recreate it, as it is needed for WP Rocket to work correctly." on the latest version. This happens without using RUCSS. |
Same problem here since version 3.12.1. |
Same problem here! |
@socialpreneur @AriGolden this issue was resolved in 3.12.1.1, apologies for the troubles. @Daniel-HBK Which issue are you reffering to? This specific thread is strictly related to |
@piotrbak I have a diff one but the same flood issue. |
@Daniel-HBK Updating to 3.12.1.1 will solve the problem. If you still don't have access to it (it's a staggered release), please reach our Support and we'll make it available for you. |
Related - https://secure.helpscout.net/conversation/2039490566/375237/ |
So, how to solve this problem? |
@MyGodKnow Hello and thanks for the comment. This problem should be solved already, if you are still experiencing it, please reach our Support Team for further investigation. |
@piotrbak i'm having the same exact problem as #4940 (comment) I've uninstalled and removed WP Rocket and i'm still getting a flood of rocket_rucss_pending_jobs_cron items. What's the solution for those of us that have already removed WP Rocket? Clarification: woocommerce has never been installed on this site. |
@mcneese Could you reach our Support, so we could investigate why it's happening? |
Yes, I upgraded WP-Rocket to the new version and solve thie problem. Thanks you |
Before submitting an issue please check that you’ve completed the following steps:
Version: 3.11.0.4
Describe the bug
The database table actionscheduler_actions is being overwhelmed with Completed tasks from rocket_rucss_pending_jobs_cron
1439 wpar/process_health_check
2830 wc_facebook_regenerate_feed
16005 wpar/global_republish_fetch_posts
36503 rocket_rucss_job_check_status
12401212 rocket_rucss_pending_jobs_cron
Of those only
6380 rocket_rucss_pending_jobs_cron
are set to pending.
The wp cron is working properly so if there is some task to clear these out often it doesn't seem to be working but database table grew to over 8GB.
Expected behavior
Some scheduled job to clear these completed tasks.
Backlog Grooming (for WP Media dev team use only)
The text was updated successfully, but these errors were encountered: