Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

WooCommerce "past-due actions found; something may be wrong": Action Scheduler is not running its queue

Technical article
Hosting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

An administrator who sees "Action Scheduler: 12 past-due actions found; something may be wrong." on a WooCommerce site is being told that scheduled background jobs, such as emails, webhooks and subscription payments, were due and did not run. The number varies, and the notice reads "past-due action" when the count is 1. The causes below are that WP-Cron is not firing, that the default queue runner has been switched off, that a large backlog is draining slowly, and that one action keeps failing.

What the error means

Action Scheduler is the job queue inside WooCommerce. Its documentation says it attempts to run every minute, as a callback on a WP-Cron event, and that once a minute it also checks on the shutdown hook of admin requests whether pending actions exist and, if so, starts a queue by an asynchronous loopback request. Each run claims a batch of 25 actions and works until it uses 90% of available memory or has run for 30 seconds.

In the Action Scheduler 4.1.0 source, which WooCommerce 11.3.1 bundles, the notice appears to users who can manage options. It counts pending actions scheduled earlier than one day ago (the default threshold is DAY_IN_SECONDS, 86,400 seconds) and shows the notice when there is at least one. The notice links to the Past-due list at Tools > Scheduled Actions. The Action Scheduler FAQ says: "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." It adds that "If there are several past-due actions more than one day old, there may be something wrong with your site."

The admin screens are Tools > Scheduled Actions and, with WooCommerce installed, WooCommerce > Status > Scheduled Actions. From there you can view actions by status, such as failed or in-progress, and read the log of one action to find out why it failed.

Likely causes

Cause What you see How to confirm
WP-Cron is disabled and no system job calls it Every scheduled job is late, not only WooCommerce's DISABLE_WP_CRON is true; wp cron test reports an error
WP-Cron cannot spawn over HTTP Cron events run late or not at all wp cron test warns about a non-200 response
The default queue runner is disabled Past-due count grows steadily wp action-scheduler status shows the runner as disabled
A large backlog drains slowly Count falls, but too slowly Oldest pending date moves forward between checks
One action fails or times out repeatedly Failed status, errors in the action log The failed action's log entries

Prove the cause before changing anything

Steps 1 to 4 only read. Step 5 sends one real request to the site and has its own warning.

  1. Open WooCommerce > Status > Scheduled Actions, choose the Past-due view and sort by scheduled date. Note the oldest date, the hook names and the count. Open one action's log.
  2. Ask WP-CLI for the queue's state. The vendor describes this command as showing the data store, runner and version in use, plus the number of actions in each status with the oldest and newest scheduled dates.
wp action-scheduler status

When the default runner is switched off, the command prints "(disabled)" after the runner's class name. A good result shows the runner enabled and an oldest pending date that moves forward on later runs.

  1. Check the constant directly. The POSIX grep page defines -n as preceding each output line by its line number.
grep -n DISABLE_WP_CRON wp-config.php
  1. List the cron events and look for the hook action_scheduler_run_queue. In the source it is scheduled with the interval every_minute.
wp cron event list

If the hook is missing, or its next run is far in the past, WP-Cron is not running events.

  1. Test WP-Cron spawning. WP-CLI's page says the command checks whether DISABLE_WP_CRON is set and errors if it is, warns if ALTERNATE_WP_CRON is set, and warns on a non-200 response when it tries to spawn WP-Cron over HTTP.

Risk: the next command attempts to spawn WP-Cron over HTTP, which is a real request to the live site. It changes no setting and nothing needs saving first.

wp cron test

A good result is "Success: WP-Cron spawning is working as expected."

Fix

WP-Cron is disabled and nothing calls it

The WordPress handbook says to set up the system's task scheduler to request wp-cron.php at the intervals you want, and then to disable WP-Cron in wp-config.php. For Linux it gives a crontab form using wget --delete-after.

First save the current state: write down every line now in the crontab, and the time.

Risk: The next step adds a scheduled job to the server's crontab, which runs on its own from then on and makes a web request to the site each time.

Run crontab -e and add one line, with your own address and interval. The Action Scheduler documentation says it attempts to run every minute.

*/5 * * * * wget --delete-after https://shop.example.com/wp-cron.php

Risk: the next step removes the new job. WP-Cron then stays disabled with nothing calling it, so jobs stop again.

To undo it: run crontab -e again and restore exactly the lines you wrote down.

WP-Cron cannot spawn, or the default runner is disabled

If wp cron test warns about the HTTP spawn, the cause is the site's loopback request, covered in WordPress Site Health "Your site could not complete a loopback request": read the result, then find what blocks the request. If the runner is disabled, the Action Scheduler documentation says that when the "Disable Default Queue Runner" plugin is used, "you must run Action Scheduler via WP CLI or another method, otherwise no scheduled actions will be processed." The WP-CLI command is given under "A large backlog" below.

A large backlog

The documentation says WP-CLI is "a much better choice" than the default runner for large queues. Running the queue performs overdue actions: emails go out, webhooks fire and subscription payments are attempted, some of them days late.

First save the current state with a database export. The wp db export page says the argument is the name of the SQL file to export to.

wp db export /home/user1/backups/shop-2026-12-04.sql

Disruptive step: The next command runs overdue actions now, and the work an action does cannot be undone. Emails sent stay sent and payments attempted stay attempted. It also adds load to the server. Run it outside busy hours, in small batches first.

wp action-scheduler run --batch-size=25 --batches=1

The command's own options are --batch-size, defaulting to 100, and --batches, where 0 means batches continue until no actions remain. Run it again, or raise the numbers, once the first batch has behaved.

Running actions cannot be undone. The export is a copy of the database as it stood when you ran wp db export; the wp db import page describes importing a database from a file. Whether to import it, and what that would do to anything changed since the export, is for whoever owns the data to decide.

Example (illustrative): shop.example.com on web01 shows "Action Scheduler: 37 past-due actions found; something may be wrong." The Past-due list's oldest action is 3 days old, which is 3 × 86,400 = 259,200 seconds. grep finds define( 'DISABLE_WP_CRON', true ); and wp cron test reports an error. The administrator saves the crontab, adds the 5-minute wget line, and the Past-due count falls on the next runs.

Confirm the fix

  1. Run wp cron test and expect the success line.
  2. Run wp action-scheduler status twice some minutes apart. The pending count falls and the oldest pending date moves forward.
  3. Reload the Scheduled Actions screen. The Past-due list is empty, or holds only actions scheduled less than a day ago. The notice stops on the next admin page load once no pending action is more than a day overdue, because the source counts only pending actions scheduled earlier than one day ago.

What to watch afterwards

  • Failed actions: the documentation says that since version 4.0.0 Action Scheduler keeps them for three months by default. Read their logs rather than letting them build up.
  • The documentation warns that raising concurrent batches "can substantially increase server load and take down a site." Raise throughput only with WP-CLI and in small steps.
  • After moving the site, changing host or switching a cache or firewall on, run wp cron test again.

Risks and limits

  • These commands have not been run or lab-tested.
  • The behaviour described comes from Action Scheduler 4.1.0, the version WooCommerce 11.3.1 bundles; other versions may differ.

Sources