Something Wrong with Action Scheduler
-
Hi Team,
Lately, I have seen many past-due action warnings on my admin dashboard. Actually most was about 155 actions.
I referred to this documents and tried to hook the wp-cron with system cron:
https://developer.ww.wp.xz.cn/plugins/cron/hooking-wp-cron-into-the-system-task-scheduler/
https://woocommerce.com/document/automatewoo/replace-wordpress-cron-real-cron-job/
But I am still seeing the same warning after a day.
Not sure what is causing this. Please help
Thanks!
-
This topic was modified 1 year, 6 months ago by
Deepak.
-
This topic was modified 1 year, 6 months ago by
-
Hey @d88pak ,
It’s not uncommon for WP Cron to occasionally show a few past-due actions since tasks might not always execute exactly on time. However, seeing a large number (like 155) may indicate an issue with the scheduling system.
Can you navigate to WooCommerce → Status → Scheduled Actions → Pending and manually run any pending actions to see if this clears some of the backlog:

It may also be helpful to review any recently added plugins that might impact cron tasks, as conflicts with scheduling plugins can sometimes cause delays. Temporarily deactivating them may reveal if one of them is the source of the issue.
This guide on debugging WP Cron might also be helpful: Debugging WP Cron.
Let us know how this goes!
Hi @beautyofcode,
I have just checked the status. It shows 598 past-due actions. Don’t know what’s going on. I haven’t updated any plugin AFAIK. This problem starting to show from last few days out of nowhere.
Any Suggestions?
Hi @d88pak ,
Thank you for sharing more details about the issue.
To clarify, are you still seeing the pending action even after running it manually? Additionally, have you set up a server-level cron job by disabling WP-cron? Also, have you had a chance to manually disable all plugins to see if the number of past-due actions decreases?
It would also help us to review your current System Status Report to gain more insight into your setup. You can find this report in your WooCommerce dashboard by going to WooCommerce > Status. From there, please select Get system report and then Copy for support.
If there are any fatal error logs, please share those as well. These can be accessed under WooCommerce > Status > Logs.
Once you’ve gathered this information, please paste it into a Code block in your reply or use pastebin.com and share the link with us.
Thank you for your patience and cooperation!
Yes I am still seeing lots of past due actions as of today.
As I mentioned before I have hooked the wp-cron with system cron earlier.
Seems like system cron is calling the wp-cron periodically when I checked
sudo cat /var/log/syslog | grep cron
Nov 12 13:20:01 Kinaun-Shopping-2204-LTS CRON[1599614]: (root) CMD (wget -qO- "https://www.kinaun.com/wp-cron.php" >/dev/null 2>&1)
Nov 12 13:25:01 Kinaun-Shopping-2204-LTS CRON[1599847]: (root) CMD (wget -qO- "https://www.kinaun.com/wp-cron.php" >/dev/null 2>&1)
Nov 12 13:30:01 Kinaun-Shopping-2204-LTS CRON[1600002]: (root) CMD (wget -qO- "https://www.kinaun.com/wp-cron.php" >/dev/null 2>&1)
Nov 12 13:35:01 Kinaun-Shopping-2204-LTS CRON[1600149]: (root) CMD (wget -qO- "https://www.kinaun.com/wp-cron.php" >/dev/null 2>&1)
Nov 12 13:40:01 Kinaun-Shopping-2204-LTS CRON[1600517]: (root) CMD (wget -qO- "https://www.kinaun.com/wp-cron.php" >/dev/null 2>&1)
Nov 12 13:45:01 Kinaun-Shopping-2204-LTS CRON[1600624]: (root) CMD (wget -qO- "https://www.kinaun.com/wp-cron.php" >/dev/null 2>&1)
Nov 12 13:50:01 Kinaun-Shopping-2204-LTS CRON[1600711]: (root) CMD (wget -qO- "https://www.kinaun.com/wp-cron.php" >/dev/null 2>&1)
Nov 12 13:55:01 Kinaun-Shopping-2204-LTS CRON[1600780]: (root) CMD (wget -qO- "https://www.kinaun.com/wp-cron.php" >/dev/null 2>&1)
Nov 12 14:00:01 Kinaun-Shopping-2204-LTS CRON[1600865]: (root) CMD (wget -qO- "https://www.kinaun.com/wp-cron.php" >/dev/null 2>&1)
Nov 12 14:05:01 Kinaun-Shopping-2204-LTS CRON[1601002]: (root) CMD (wget -qO- "https://www.kinaun.com/wp-cron.php" >/dev/null 2>&1)
Nov 12 14:10:01 Kinaun-Shopping-2204-LTS CRON[1601155]: (root) CMD (wget -qO- "https://www.kinaun.com/wp-cron.php" >/dev/null 2>&1)
Nov 12 14:15:01 Kinaun-Shopping-2204-LTS CRON[1601298]: (root) CMD (wget -qO- "https://www.kinaun.com/wp-cron.php" >/dev/null 2>&1)
Nov 12 14:17:01 Kinaun-Shopping-2204-LTS CRON[1601340]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Nov 12 14:20:01 Kinaun-Shopping-2204-LTS CRON[1601547]: (root) CMD (wget -qO- "https://www.kinaun.com/wp-cron.php" >/dev/null 2>&1)However, I can see lots of pending jobs
Screenshot: https://prnt.sc/OcqUJKIw0toa
System Report: https://pastebin.com/xzvf3i8g
I found 2 fatal errors on Nov 5
Error 1: https://pastebin.com/URicKqG6
Error 2: https://pastebin.com/4PRnLZ90Seems like that was during Slider Revolution update.
Any suggestions?
Thanks!Hello Deepak,
Thank you for your reply.
I understand that the problem lies with Cron.
For further troubleshooting, I recommend installing a 3rd party plugin WP Crontrol.
It will provide us with more details about the underlying issues.Please share screenshots of the issues that you find after installing WP Crontrol.
Looking forward to your response. 🙂
Hi @doublezed2
I have installed the WP Control and checked the cron events. There are some past due events. When I try to run it manually, it creates another job (same) with 54 years past date.
Don’t know what’s going on.
Please check the screenshot for your reference: https://prnt.sc/ZYz0iv3vS2_o
Need your expert suggestion
Thanks!
Hi Team,
After a long troubleshoot, I figured out the problem. It has nothing to do with WooCommerce or WordPress but my Cloudflare WAF blocking rule.
Improper WAF rule is blocking the access to certain URLs
Once the WAF rules are set properly, all is working fine.
Sorry for the trouble and Thanks a lot for the suggestions!
Hello Deepak,
Thank you for your reply.
I am glad to hear that you have resolved the issue.
I appreciate you for sharing the solution here.Please don’t hesitate to contact us again if you have more questions or concerns. We are here to help 🙂
Best regards.
The topic ‘Something Wrong with Action Scheduler’ is closed to new replies.