• Hi,

    With AP 1.0.2, the Health Check shows this message, as a recommended improvement. I’m checking into how to setup a system cron job to run wp-cron.

    In the meantime, I noticed that I have an “action_scheduler” installed, via an other plugin (WPForms), running every minute…

    Hook Name - action_scheduler_run_queue
    Arguments - ["WP Cron"]
    Recurrence - every minute

    And this triggers more actions for the plugin, scheduled at various recurrences.

    “WPForms is using the Action Scheduler library, which allows it to queue and process bigger tasks in the background without making your site slower for your visitors. Below you can see the list of all tasks and their status. This table can be very useful when debugging certain issues.
    Action Scheduler library is also used by other plugins, like WP Mail SMTP and WooCommerce, so you might see tasks that are not related to our plugin in the table below.”

    Wouldn’t it be an easier way to manage AP’s update needs than having to add some system task, that many, like me, might not be able or willing to (try to) do?

    It’s an Automattic pluginactionscheduler.org BTW.

    Sincerely
    DJM

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Matthias Pfefferle

    (@pfefferle)

    I am not sure if I understand you correctly, but this is only a recommendation… It totally works without, but better with it 😉

    Thread Starter cybeardjm

    (@didierjm)

    I know @pfefferle it’s only a recommended improvement.

    The thing is, each time I run the health check, this recommendation appears, and this is, IMHO, annoying.

    Besides that, many won’t be able or want to do such changes, as it is “outside of WordPress”, where the Action Scheduler is an Automattic plugin to achieve the same results.

    That’s all.

    Sincerely
    DJM

    Plugin Author Matthias Pfefferle

    (@pfefferle)

    but even the Action Scheduler is recommending the CLI version, which needs a real Cron. I would not want to add any extra libs, but I see how I can make the recommendation dismissable.

    Thread Starter cybeardjm

    (@didierjm)

    Hi @pfefferle

    Did a test on both my blogs and also added

    define( 'DISABLE_WP_CRON', true );

    as specified by Automattic.

    Both system cron tasks (set to 1h) seem to work, as I didn’t get errors in the cron log…

    But, the “disable_wp_cron” set to “true” did a real mess in all the scheduled tasks: they all got late and the “crontrol” plugin was all alerts…
    Switched back to false, and everything seems fine/back to normal, but “health check” tells me I should add a system task, which I now have…

    Sincerely
    DJM

    Plugin Author Matthias Pfefferle

    (@pfefferle)

    By default the CRONs were triggered by potentially every page load. The advantage is, that it will run the tasks in time, at least if you have a high frequented site. The disadvantage is, that it will never called if no-one visits your site and that the page-load is slowed down if there are many queued CRONs or CRONs that processes a lot.

    define( 'DISABLE_WP_CRON', true );

    Deactivates the “on page load”. The advantage is, that it will be called asynchronously and does not slow down user-requests. The disadvantage is, that it might not call CRONs just in time, because the Systems Cron might only run every hour. That does not mean that they will not be handled, but it could cause some more time. To fix that, you could change your cron to run every 5 mins for example.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘System Task Scheduler not configured’ is closed to new replies.