Many Actions Scheduler
-
After the new update I have too many Scheduled Actions “past-due-actions” found.
Most of them have this hook wc_delete_related_product_transients_async and the following group wc_delete_related_product_transients_groupThis makes the WordPress back end so slow.
-
This topic was modified 1 year, 1 month ago by
tomenr.
The page I need help with: [log in to see the link]
-
This topic was modified 1 year, 1 month ago by
-
Hi @tomenr,
The buildup of past-due scheduled actions can slow down the WordPress admin significantly.
To help with this, I recommend going to WooCommerce → Status → Scheduled Actions, filter by “Past Due,” and manually run or delete the actions tied to that hook. Also, please check that your site’s cron system is functioning properly—some hosting setups disable WP-Cron, so tasks may not process unless a real server cron job is configured. You can reach out to your hosting provider to confirm this.
Let us know how it goes.
Thanks for your answer.
I get now the following message: “Action Scheduler migration in progress. The list of scheduled actions may be incomplete.”
Hello tomenr,
Thank you for your reply.
This is an expected behaviour of WooCommerce. Please monitor this message for a couple of days (completion time depends on the size of the store) and let me know if this goes away or not.
I will be happy to help you if need further assistance. 🙂
Best regards.
Ok. I wait for a couple of days.
What I see is the Scheduled Actions further increase.Hi @tomenr,
Thanks for reaching out. Could you share a screenshot of these scheduled actions, or identify which plugin is generating them? Additionally, can you let me know the status of these actions — are they marked as failed, pending, or completed?
All the scheduled actions are markes as pending. I still see the warning “Actions Scheduler migrations in progress. The list of scheduled actions may be incomplete. ” At the moment I have 834 past-due actions found.
Here you can see a screenshot from my Scheduled Actions. https://jmp.sh/s/7NzS6olhDCG9YpZx6ix9
What I have also noticed is that in Analytics > Overview the news orders are not scored.
Hi @tomenr ,
Thanks for the additional details.
Since many actions are stuck in “Pending” and you’re still seeing the migration warning, it sounds like the Action Scheduler database migration hasn’t completed properly. This can cause issues like delayed reporting in Analytics and past-due actions.
Here’s what I recommend:
- Go to WooCommerce > Status > Scheduled Actions, and try running a few pending actions manually to see if they complete.
- Check if there are any database update notices pending in WooCommerce > Status or WooCommerce > Settings.
- Also, check your site’s error logs (under WooCommerce > Status > Logs) for any messages related to “action scheduler” or database errors.
Let me know how it goes!
I checked in WooCoommerce > Status > Logs and I see a source called “Fatal-Errors” but nothing related to actions scheduler or database.
Regarding the database everything looks apparently fine
Hello tomenr,
Thank you for your reply.
Please share the fatal error logs via Pastebin.com. I want to check if there are any errors that might look unrelated but may be important.
Looking forward to your response. 🙂
Here you can find the error logs: https://pastebin.com/F3q4mtpS
Hi @tomenr,
Thanks for your patience and for sharing the error details.
Based on the error log you provided—
Allowed memory size of 268435456 bytes exhausted—it appears that your site is hitting its PHP memory limit, which is currently set to 256MB. This kind of memory exhaustion can directly affect background processes like WooCommerce’s Action Scheduler, which may explain why you’re experiencing failed or stuck scheduled actions.The Action Scheduler is responsible for running important background tasks such as order processing, subscription renewals, product imports, and more. When the server runs out of memory during these operations, the actions can’t complete successfully, leading to failures or a growing queue of pending tasks.
To help resolve this, I recommend increasing your PHP memory limit to at least 512MB. This can be done by your hosting provider or manually by adding the following lines to your
wp-config.phpfile:define('WP_MEMORY_LIMIT', '512M'); define('WP_MAX_MEMORY_LIMIT', '1024M');Once the memory limit is increased, head to WooCommerce → Status → Scheduled Actions, and try running a few of the pending actions manually. This will help confirm whether the memory increase allows them to process correctly.
Additionally, please check for any non-essential plugins that might be overloading your site with background tasks. Disabling them temporarily can help isolate the cause. If you’re using object caching (like Redis or Memcached), consider flushing the cache or disabling it briefly to see if that affects performance.
Let me know how it goes after these steps, and feel free to reach out if you’d like help with any part of the process.
We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.
If you have a few minutes, we’d love if you could leave us a review: https://ww.wp.xz.cn/support/plugin/woocommerce/reviews/
The topic ‘Many Actions Scheduler’ is closed to new replies.