Action Scheduler: 0 past-due actions found

#457556
  • Resolved Dipesh Deuja
    Rank Math free

    “Action Scheduler: 0 past-due actions found; something may be wrong. Read documentation »”

    This warning has been displayed on my site. May I know why this warning occurs as it states 0 past-due actions founds that mean, no scheduled actions remaining?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    The notice is a message stating that there are pending Action Scheduler actions that were not completed.

    You can follow either of the following steps to remove the warning:

    1. Please add the following filter to remove the warning:

    
    add_filter( 'action_scheduler_pastdue_actions_check_pre', '__return_false' );
    

    1.1 Here is a tutorial on how to do it:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    2. Open the Action Scheduler page, click on the Pending tab, Select all and delete them using the Bulk Action dropdown:
    https://i.rankmath.com/XBucZ8
    Normal WordPress installation path:
    /wp-admin/admin.php?page=wc-status&tab=action-scheduler

    WordPress installation with WooCommerce in it:
    /wp-admin/admin.php?page=wc-status&tab=action-scheduler

    3. You can set up a real cron job for the same:
    https://www.siteground.com/tutorials/wordpress/real-cron-job/
    https://www.google.com/search?q=wp+cron+replace+with+real+cron

    Please stay advised that the Action Scheduler will not run if there are no visitors to the site (just like WP’s own cron).

    Even Action Scheduler, the library that is used in the RM plugin, states that “Actions that are past-due have missed their scheduled date; because of how WP Cron works, it is normal to have some past-due actions.”

    Don’t hesitate to get in touch if you have any other questions.

    As per your saying, the warning is displayed because there are pending Action Scheduler actions that were not completed. But, it’s showing 0 past-due actions found. What does this indicate? Is this some bug or other?

    Nigel
    Rank Math business

    Hello,

    “Pending” actions are scheduled to run in future at a specific time.
    “Past due” actions have passed their due date without running. All “past due” actions will also have a pending status. Once the action has run it will get a status of “Complete”

    I hope that clarifies things. If you have questions, do not hesitate to ask.

    I got your point. What I want to make clear is that it’s showing 0 past-due actions found, which means, no action left, but the warning is showing.

    Hello,

    Please note that this warning is coming from the Cron functionality so if it is showing 0 but not on the scheduled actions, then this might be a bug.

    However, you can simply ignore that by adding the filter we previously shared.

    Hope that helps. Looking forward to helping you.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Action Scheduler: 0 past-due actions found’ is closed to new replies.