Support » Plugin: WooCommerce » Woocommerce – Scheduled Actions

  • Bruno Riggs

    (@riggsba)


    Guys, are these “Scheduled Actions” from Woocommerce necessary? I saw that this creates four new tables in the database and has 18 pages of tasks on a website that I’m looking at here

Viewing 7 replies - 1 through 7 (of 7 total)
  • archesis

    (@anchises)

    Lucky you, I have 2.455 pages and over 24.500 tasks (and counting!).

    Thank god I am just testing on my own local Woocommerce installation (xampp) right now, a real shared webhoster would probably think I had been hacked and deny access.

    Who decided to release this…? Are they for real? What is this?

    Plugin Support Remi Corson – a11n

    (@corsonr)

    Automattic Happiness Engineer

    Hi there,

    Those tables are real yes 😉! They are used by many addons and by WC core, I’d suggest you have a look at that page, it’s for WooCommerce SUbscriptions but it explains very well what scheduled actions are:

    https://docs.woocommerce.com/document/subscriptions/develop/complete-guide-to-scheduled-events-with-subscriptions/

    archesis

    (@anchises)

    O.K. So dear “Automattic Happiness Engineer”, I am sure you can give me advice on this: I am at over 40.000 “scheduled actions” right now and still going up.

    What you are trying to tell me is that I can’t upgrade to Woocommerce 4.x?

    Why?

    These scheduled actions would slow down my shop for weeks, and probably are going to cause various problems for the live shop (for example because new scheduled actions are not processed) as well as for my relationship to my webhoster, who will likely suspect I had been hacked because of the sudden and constant high loads.

    So what I am getting right now, is that an “Automattic Happiness Engineer” is recommending me, that I shouldn’t be using Woocommerce because it’s not suited for people who actually use their webshop to sell stuff (shocking, I know!) and therefore have an order history, but more for people who like fancy colors and graphs.

    The general vibe I am getting from WordPress lately is they don’t care about existing users and are just interesting in attracting new and lets call them “innocent” users, who don’t know better. Am I right or am I right?

    On topic: HOW DO I FIX THIS MESS? Asap!

    Plugin Support Remi Corson – a11n

    (@corsonr)

    Automattic Happiness Engineer

    Hi there

    In most cases when the scheduled actions tables are growing quickly and never decrease, it means there’s most likely a cron issue. In other words, cron tasks aren’t fired, thus their respective data remains in the database.

    I’d suggest you install this extension:

    https://wordpress.org/plugins/wp-crontrol/

    It’s a great tool to debug this kind of issue. Also, you can learn more about cron debug here:

    https://docs.woocommerce.com/document/subscriptions/develop/complete-guide-to-scheduled-events-with-subscriptions/#section-5

    Thread Starter Bruno Riggs

    (@riggsba)

    If I delete these scheduled tasks in WordPress, and also the four scheduling tables in the database, what happens?

    Plugin Support Remi Corson – a11n

    (@corsonr)

    Automattic Happiness Engineer

    Hi there,

    If you’re selling subscriptions, you can empty the tables BUT I highly recommend you don’t delete them and fix the issues of the crons task instead.

    archesis

    (@anchises)

    WP cron jobs are “firing” perfectly, completed and total tasks are increasing, pending tasks are at 3785 and not decreasing, which is probably the maximum number, the queue is able to display.

    • This reply was modified 1 year ago by archesis.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Woocommerce – Scheduled Actions’ is closed to new replies.