• Resolved Nico Marcuz

    (@nick7766)


    Good morning!

    We have a question regarding cron job tasks. We have seen in the table that the following WooCommerce cron jobs are included there for which no action is stored:

    woocommerce_cleanup_rate_limits: Action none

    woocommerce_tracker_send_event: Action none

    Is this an error?

    Many thanks for a short feedback.
    Nick

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Hi there @nick7766

    Can you clarify what table is that, in order to investigate further, please?

    Thanks!

    Thread Starter Nico Marcuz

    (@nick7766)

    Hi @anastas10s,

    I am sending you a screenshot of the WooCommerce task in the cron stack. There you can also see the tasks that have not been assigned an action.

    2023-06-07_17h09_19.png

    Do you need more information?

    Hi @nick7766

    Thanks for providing the requested screenshot.

    It appears that the actions associated with them are not stored:

    1. woocommerce_cleanup_rate_limits: Action none
    2. woocommerce_tracker_send_event: Action none

    This is not necessarily an error. The Action none simply means that there are no actions currently associated with these cron jobs. The absence of an action could be due to a few reasons:

    1. It is possible that the cron jobs are not yet configured or have been disabled intentionally.
    2. The cron jobs may have been created by a plugin or theme that is no longer active on your site.
    3. There could be a conflict with another plugin or theme that is preventing the actions from being registered.

    To further investigate this issue, please follow these steps:

    1. Ensure that your WooCommerce plugin and all other plugins are up to date.
    2. Check if you have any inactive plugins or themes that could have created these cron jobs, and remove them if necessary.
    3. Deactivate all non-WooCommerce plugins and switch to a default theme (such as Twenty Twenty-One) to see if the issue persists. If the issue is resolved, reactivate your plugins and theme one by one to identify the source of the conflict.

    If the issue still persists after following these steps, please share with us the necessary information below for us to investigate the issue further:

    • System Status Report which you can find via WooCommerce > Status > Get system report > Copy for support.
    • Fatal error logs (if any) under WooCommerce > Status > Logs.

    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.

    Thread Starter Nico Marcuz

    (@nick7766)

    Godd morning @xue28 ,

    What is the function of the two tasks woocommerce_cleanup_rate_limits and woocommerce_tracker_send_event? What should they do in principle?

    Hi,

    1. woocommerce_cleanup_rate_limits: This cron job is responsible for cleaning up the rate limits applied in WooCommerce REST API requests.

    2. woocommerce_tracker_send_event: The WooCommerce plugin collects non-sensitive diagnostic and usage data, for example, information such as the WordPress version, PHP version, WooCommerce version, server environment, activated plugins, and various store settings.

    Both cron jobs are designed to run in the background. If you would like to learn more, please check: How to View and Control WordPress Cron Jobs.

    Hope this helps.

    Thread Starter Nico Marcuz

    (@nick7766)

    Good morning Igor!

    Many thanks for your feedback. If we see it correctly, these two tasks should be performed on a daily basis. If this assumption is correct, is it okay that there is no entry in “Action”? (See the screenshot).

    2023-06-13_08h10_13.png

    Hi,

    is it okay that there is no entry in “Action”? (See the screenshot).

    As explained by @xue28 it does not mean there is an error:

    This is not necessarily an error. The?<code>Action none</code>?simply means that there are no actions currently associated with these cron jobs. The absence of an action could be due to a few reasons:

    This indicates that the cron event is set to run, but there is no related feature that will be activated when the event occurs. This issue frequently arises when plugins fail to clear their cron events upon deactivation.

    It is probable that these can be safely removed.

    I hope this helps.

    Thread Starter Nico Marcuz

    (@nick7766)

    Good morning Igor. Many thanks for your feedback.

    Sorry that I’m asking here again: I understand that as you write, the cron event is set to run but that there is no function stored that should be processed when it is run. Understood everything.

    This is exactly what worries us about the woocommerce_cleanup_rate_limits cron job.

    Does your last sentence “This issue frequently arises when plugins fail to clear their cron events upon deactivation. It is probable that these can be safely removed” mean that an external plugin may have caused this problem and that we should delete the cron job “woocommerce_cleanup_rate_limits” to fix the problem?

    Sorry for the trouble!

    Saif

    (@babylon1999)

    Hello @nick7766,

    This is exactly what worries us about the woocommerce_cleanup_rate_limits cron job.

    Sorry, but I’m not sure if I get the full picture. This occurs when cron jobs do not have any actions to execute which is normal.


    Link to image: https://d.pr/i/iuLkQH

    You can change the interval to once a month or temporarily pause this hook. However, I don’t think it’s worth it as you might install a plugin that relies on this cron job in the future.

    Are you experiencing any specific issues/bugs because of this notice?

    Look forward to hearing back from you.

    Thread Starter Nico Marcuz

    (@nick7766)

    @babylon1999

    Hi Saif,

    I understand what the task “woocommerce_cleanup_rate_limits” is responsible for. However, since no action is assigned to the task, I thought that the task could not be executed properly if it was required by WooCommerce.

    Just for my understanding the additional question:

    Do I understand correctly that if WooCommerce requires the task “woocommerce_cleanup_rate_limits” then an action is dynamically assigned to this task?

    Saif

    (@babylon1999)

    I understand what the task “woocommerce_cleanup_rate_limits” is responsible for. However, since no action is assigned to the task, I thought that the task could not be executed properly if it was required by WooCommerce.

    That might not be the case unless you’re experiencing an issue in your site or can see related fatal error logs in WooCommerce > Status > Log.

    For instance, let’s imagine you have a function that adds the customer’s email to a cron job when they place an order and sends them an automated order confirmation.

    The job will run every 24 hours. If three customers place orders, three emails will be queued to be sent when the woocommerce_send_my_custom_email job runs. If no orders are placed, the cron job will still be triggered every 24 hours but no emails will be sent, which is similar to what’s happening here. :?)

    Hope this helps!

    Thread Starter Nico Marcuz

    (@nick7766)

    Thank you for the explanation. I understood everything.

    I think we can close this ticket.

    best regards
    Nick

    Hi,

    Glad to hear that @babylon1999 clear this up.

    Thanks. If you have a few minutes, we’d love it if you could share your experience with the community by leaving a review (This is optional): https://www.ads-software.com/support/plugin/woocommerce/reviews/

    Kind regards.

    Thread Starter Nico Marcuz

    (@nick7766)

    With pleasure. i did it some time ago.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘WC Cronjob tasks . Here: Action: none’ is closed to new replies.