Action Scheduler past-due actions: what the warning means and how to fix it
A yellow notice says your store has past-due actions and that something may be wrong. What Action Scheduler is, which late jobs actually matter, why the queue stops running, and how to get it moving again without deleting work your store still needs.
Published 10 min read
This post has you renaming folders and editing files on your server. Back up first and change one thing at a time, so you can undo the one that made it worse. If you'd prefer someone else did it, the end of the post says what we charge.
The short answer
Past-due actions are background jobs (renewal payments, webhooks, Analytics imports) whose time came and went without anything running them. Open the Past-due list, see which jobs are late, check whether WP-Cron is running at all, run one job and read its log, then give the queue a real server cron. Never bulk-delete pending jobs to clear the warning.
- 01Open the list the warning is about
- 02Read which jobs are late
- 03Find out whether the queue runs at all
- 04Run one job, read what happens, then run the rest
- 05Give the queue a real clock
- 06When the queue runs but can’t keep up
- 07Let the notice clear itself
Rather hand it over? Get a fixed price for the whole job, from $249.
“Action Scheduler: 12 past-due actions found; something may be wrong.” That notice means background jobs in your store were due more than a day ago and nothing has run them yet. Action Scheduler is the to-do list built into WooCommerce and many other plugins: subscription renewal payments, webhook deliveries, the Analytics import, nightly cleanups. When the list stops being worked through, those jobs wait. Usually nothing is broken except the clock that is supposed to start the work, and that is fixable in an afternoon.
Below is the order I’d work in: see which jobs are late, find out whether the queue runs at all, run the backlog, then give it a clock it can rely on.
Step 01 Open the list the warning is about
Click “past-due actions” in the notice, or go to WooCommerce → Status → Scheduled Actions and choose Past-due (on a site without WooCommerce it’s Tools → Scheduled Actions). Only administrators see the notice, so if a shop manager reports a slow store, look here yourself.
Two things explain most of the confusion on this screen:
- The notice and the tab count different things. The notice counts pending jobs more than a day late. The Past-due tab lists every pending job whose time has passed, even by a minute. So the tab usually shows more than the notice, and a short list there is normal: the queue runs about once a minute and is often between passes.
- A few is fine. Action Scheduler’s own FAQ says it’s normal to have some past-due actions, and that several more than a day old point to a problem on the site. The notice only appears in that second case.
No number in the notice? If it reads “%1$d past-due actions found”, that’s a display bug, not a different problem. The copy of Action Scheduler inside WooCommerce 11.2 and 11.3 (version 4.1.0) prints the placeholder where the number should be, and the link on it goes nowhere. Action Scheduler 4.2.0 fixed it in September, and WooCommerce’s development code already uses the fix. The warning itself is real, so open WooCommerce → Status → Scheduled Actions → Past-due by hand.
Seeing “0 past-due actions found”? Then a copy of Action Scheduler older than version 3.5.4, from January 2023, is the one running, and a plugin is interfering with the check. Several plugins bundle their own copy and the newest one wins. WooCommerce → Status shows which version is running in its Action Scheduler section (the “Version:” line). Updating the plugins that bundle the old copy, usually WooCommerce itself, removes it.
The same section of WooCommerce → Status has a table with the count, oldest and newest date for each status. The oldest pending date is the quickest measure of how long the queue has been stuck.
Step 02 Read which jobs are late
The link in the notice opens the list oldest first. (From the menu, click the Scheduled Date column to sort it the same way.) Read the Hook column. The hook is the job’s name, and it usually names the plugin that scheduled it; the Group column often does too. These are the ones a store owner meets most:
| Hook | What it does | If it’s late |
|---|---|---|
woocommerce_scheduled_subscription_payment | Takes a WooCommerce Subscriptions renewal payment | Customers haven’t been charged and renewal orders haven’t been created. This is the one that costs money. |
woocommerce_scheduled_subscription_trial_end, woocommerce_scheduled_subscription_end_of_prepaid_term | Ends a trial, or cancels a subscription when its paid period runs out | Subscriptions stay in the wrong state |
woocommerce_deliver_webhook_async | Sends a WooCommerce webhook to another system | Your shipping, accounting or CRM tool hasn’t heard about recent orders |
wc-admin_import_orders and other wc-admin_ hooks | Feeds orders into WooCommerce Analytics | Reports are behind; the orders themselves are fine |
woocommerce_cleanup_draft_orders | Daily cleanup of unfinished checkout drafts | Harmless for a while |
If you sell subscriptions, also open WooCommerce → Status → Subscriptions and check the Missing renewals tab: it lists subscriptions whose payment date was missed. That list is what you’ll want to check again after the queue is moving.
The Log column on each row is the job’s history. A job that was never started has a single “action created” line. A job that was tried and timed out says so, and that’s a different problem (step 06).
Not urgent. Still do steps 03 and 05 this week, before something that matters lands in the same queue.
Step 03, now.
Step 03 Find out whether the queue runs at all
Most past-due backlogs have one cause: nothing is starting the queue. Action Scheduler doesn’t run on its own. Two things start it:
- WP-Cron, WordPress’s built-in scheduler, asks it to work through the list about once a minute. But WP-Cron only runs when a visit reaches WordPress’s PHP code. A quiet store, or a store whose pages are served from a full-page cache or a CDN without touching PHP, can go hours without a single run.
- Admin page loads. While someone is logged in to wp-admin, Action Scheduler starts an extra run at most once a minute, by sending a quick request from your server back to itself (a “loopback request”).
That second trigger explains a pattern owners often notice: the backlog shrinks while you’re in the dashboard looking at it, then grows again overnight. Opening the Scheduled Actions screen even says so: “A new queue has begun processing.”
Three checks tell you which piece is missing:
- WooCommerce → Status, “WordPress environment” section, the “WordPress cron:” row. It shows whether WP-Cron is switched off with
DISABLE_WP_CRON. Switched off is fine only if your host runs a server cron for the site instead. A store that moved hosts often keeps thewp-config.phpline and loses the server cron that went with it, and from that day nothing runs except while someone is logged in. - Tools → Site Health. Look for “A scheduled event is late”, “A scheduled event has failed”, or “Your site could not complete a loopback request”. A failed loopback means your server can’t call itself: password protection on the whole site, a firewall or security plugin blocking
wp-cron.phporadmin-ajax.php, or a host that blocks it. That stops both triggers. - With WP-CLI (ask your host if you’re not sure you have it),
wp cron testanswers in one line. “WP-Cron spawning is working as expected.” is good. “The DISABLE_WP_CRON constant is set to true. WP-Cron spawning is disabled.” means you need the server cron in step 05. “WP-Cron spawn failed with error” or an HTTP status code means the loopback is blocked.
Step 04 Run one job, read what happens, then run the rest
Before running hundreds of jobs, run one. Hover over a past-due row and click Run (“Process the action now as if it were run as part of a queue”), then read its Log column.
- If it completes, the jobs themselves are fine and the problem is only the clock. Run the rest.
- If it fails, the log says why. “Scheduled action for … will not be executed as no callbacks are registered” means the plugin that scheduled it is no longer active. Anything else is an error in the job itself, and running more of the same won’t help. Note the hook and go to step 06.
Before you run renewals A late
woocommerce_scheduled_subscription_paymentcharges the customer when it runs, days after the date they expected. That’s the correct behaviour, but some stores email affected customers first, and a customer whose card failed in the meantime will get a failed renewal. Decide that before running a batch of them.
The screen has no bulk Run, only one row at a time. Once the clock is fixed in step 05 the queue clears the backlog on its own, a batch at a time. To clear a large backlog now, WP-CLI runs it until nothing is left:
wp action-scheduler runTo run only one kind of job first, the renewals for example:
wp action-scheduler run --hooks=woocommerce_scheduled_subscription_paymentIf it answers “There are too many concurrent batches.”, a queue is already running; wait a minute and try again. wp action-scheduler status shows the count, oldest and newest date for each status, so you can watch the pending number fall.
Don’t delete pending jobs to make the warning go away Some guides suggest selecting the pending actions and choosing Delete. Every one of them is work your store still needs: a renewal, a webhook, an Analytics import. Deleted, they never run, and nothing tells you which customers or systems missed out. Delete or cancel a job only when you know what it is and that it should never run, such as jobs left by a plugin you removed on purpose.
Don't stop yet. Without step 05 it comes back the next quiet night.
The clock isn't the only problem. Do step 05, then step 06.
Step 05 Give the queue a real clock
The lasting fix is a server cron: your host’s scheduler calls WordPress every minute, whether anyone visits or not. Every host offers one, usually as “Cron jobs” in the control panel, and managed hosts will set it up if you ask support. WordPress’s own documentation describes the setup.
Order matters. Add the server cron first, check that it runs, and only then switch WP-Cron off. Done the other way round, nothing runs in between.
With WP-CLI on the server, the cron line is:
* * * * * cd /path/to/your/site && wp cron event run --due-now --quietWithout WP-CLI, have the server request the cron page itself (replace the address with your store’s):
* * * * * wget -q -O - "https://example.com/wp-cron.php?doing_wp_cron" > /dev/null 2>&1The first form is the better one: it runs on the server, so password protection, firewalls and blocked loopbacks don’t affect it. The second goes through your site’s address like any visitor, so if step 03 found a blocked loopback, it may be blocked too.
Then, once the cron has run a few times, add this line to wp-config.php, above the line that says “That’s all, stop editing!”:
define( 'DISABLE_WP_CRON', true );Every minute matters here. Action Scheduler expects to run every minute, so a cron every five minutes still works but leaves jobs up to five minutes late. The cron also takes the jobs off your visitors: with WP-Cron, whoever loads a page at the wrong moment waits while it runs, which is part of why wp-admin can feel slow.
Fixed. Check the Missing renewals tab once more, and the notice clears itself (step 07).
The queue runs but can't keep up. Step 06.
Step 06 When the queue runs but can’t keep up
Out of the box, Action Scheduler is careful. Each run takes jobs 25 at a time and stops after about 30 seconds, and only one run happens at a time. That’s plenty for most stores. It falls behind in four situations:
- One plugin floods it. Count the Past-due list by hook. If one hook is most of it (a product feed, a marketplace sync, a marketing tool syncing every customer every hour), the fix is that plugin’s settings, or its support team. More capacity only moves the flood along faster.
- Slow jobs. A webhook pointed at a server that no longer answers makes each delivery wait for a timeout. A job that keeps running past five minutes is marked failed on the assumption that it crashed. Delete webhooks nobody uses under WooCommerce → Settings → Advanced → Webhooks, and send the log of a slow job to whoever makes the plugin.
- Huge tables. Every run has to find its next jobs in Action Scheduler’s database tables. When those tables hold millions of finished rows, that search gets slow and so does everything else. Cleaning them up is its own job: how to clean up Action Scheduler’s tables safely.
- A short PHP time limit. If your host stops PHP before 30 seconds, every run is cut short. WooCommerce → Status shows the “PHP time limit”; ask your host to raise it if it’s below 30.
On a busy store the next step is to give the queue its own worker. Action Scheduler’s documentation calls WP-CLI “a much better choice for running queues of actions than the default WP Cron runner” on large sites, and a second cron line does it:
* * * * * cd /path/to/your/site && wp action-scheduler run --quietYou’ll find settings online for running several queues at once. Action Scheduler’s own documentation warns that this “can substantially increase server load and take down a site”. It’s a decision for someone who can watch the server while it changes, not a snippet to paste in.
Step 07 Let the notice clear itself
Once the backlog is gone, the notice disappears on the next admin page you open. While there are late jobs, Action Scheduler counts them again on every admin page load; when there are none, it checks again about every six hours. Watch the Past-due tab for a few days. A handful of jobs a minute or two late is a healthy queue between runs.
You’ll also find a code snippet that switches the notice off. It hides the warning and leaves every job just as late, so the next time renewals stop, nobody finds out until a customer asks why their subscription lapsed. If a known, harmless backlog really needs to stay, a developer can raise the notice’s thresholds (how late and how many) instead of silencing it.
Where I’d stop trying: when renewals or webhooks were missed for days and you need to know exactly which customers and orders were affected, when jobs fail as soon as they run, or when the backlog keeps growing with a real cron in place. At that point the queue is telling you about something else in the store, and finding it is the first thing a store rescue does. If the store is simply too busy for the default settings, that’s performance work: measuring what the queue spends its time on before changing how fast it runs.
Rather hand it over at this point? Finding why the queue stopped, and what it missed, is the first thing our store rescue does, with a fixed price before we start.
From the RoundBorders team
Still past-due after a real cron?
Send the store’s address and the hooks at the top of the Past-due list. We find why the queue stopped or fell behind, check what was missed while it was down, and send a fixed price, usually within a few hours.
- From $249
- Same-day diagnosis
- Tested with a real order
Write as much as you like: what's happening, what you want, links, errors. The more we know, the more exact your fixed price.
Sources
- FAQ: My site has past-due actions; what can I do?, Action Scheduler
- Scaling Action Scheduler, Action Scheduler
- WP-CLI, Action Scheduler
- Changelog (4.2.0: the past-due notice placeholders fix), GitHub
- Subscriptions Scheduled Action Errors, WooCommerce.com
- Complete Guide to Scheduled Events with Subscriptions, WooCommerce.com
- Hooking WP-Cron Into the System Task Scheduler, WordPress Developer Resources
- wp cron, WP-CLI
Found a mistake? Write to me.